You are reading a single comment by @TiCPU and its replies. Click here to read the full conversation.
  • Would it be possible for a function to have a point where it could "yield" the CPU for other functions to execute? I added a quick sort function to Uint16Array which takes about 15 seconds to execute which breaks some timings when setInterval() are too short.

    I take the "yield" expression from Lua which implements multi-threading as coroutines, see:­rial


Avatar for TiCPU @TiCPU started