On Mon, 09 Oct 2017 12:18:38 GMT, Markus wrote:

Hi!

I was wondering if it's legal to use TCPConnection.write in several tasks, like:

TCPConnection myConnection;
runTask({
  myConnection.write(lotsOfData0);
});
myConnection.write(lotsOfData1);

will this mean that first lotsOfData0 or lotsOfData1 will get send and then the other one, or will it result in, some bytes of lotsOfData0, then some bytes lotsOfData1 will get send, and so on?

I couldn't find any documentation or search results on that topic, would you mind pointing me to the right direction,
thx Markus

I could be wrong but I think this will mean you're sending both sets of data at the same time. RunTask just runs the task asyncronously, and should allow both "write" operations to happen at the same time... which seems like a bad idea :-)