Skip to content

Commit

Permalink
Add a note about the native execution context
Browse files Browse the repository at this point in the history
  • Loading branch information
JD557 committed Mar 24, 2024
1 parent fade5b4 commit ffb0074
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import sdl2.enumerations.SDL_EventType.*
import eu.joaocosta.minart.runtime.*

/** Loop Runner for the native backend, backed by SDL.
*
* All Futures run on Scala Native's QueueExecutionContext, as SDL requires events to be pumped in the main thread.
* See: https://wiki.libsdl.org/SDL2/SDL_PumpEvents
*/
object SdlLoopRunner extends LoopRunner {
def finiteLoop[S](
Expand Down

0 comments on commit ffb0074

Please sign in to comment.