summaryrefslogtreecommitdiff
path: root/modules/mono/glue/cs_files/GodotTaskScheduler.cs
AgeCommit message (Collapse)Author
2018-05-15Set current SynchronizationContext before the game loop startsAdam Cigánek
This fixes the problem that `SynchronizationContext.Current` would be null during the call to `_EnterTree`, `_Ready` and the first call to `_Process` thus the task continuations would be scheduled outside the main thread, which is unexpected and might lead to crashes. With this change, task continuations are scheduled always on the main thread and so async/await can be used without any explicit synchronization, which is what is expected. Fixes #18849
2018-04-17#18051: Remove redundant casts and 'using', 'else', 'this' statementsXavier Cho
2017-10-03Added mono moduleIgnacio Etcheverry