Open RuizuKun-Dev opened 4 months ago
Seems to be caused by the scheduler's try_tick() loop getting caught in a spinloop.
(should we have merged the scheduler into this repo too?)
(should we have merged the scheduler into this repo too?)
Probably a good idea. It didn't make much sense to have it in the same repo at the time but definitely does now with the new crates. I'll look into bringing it over.
Utilizing task.spawn and asynchronous operations seems to hang indefinitely, preventing it from returning control back to the shell prompt
Happens with both with lune run main.luau and when using the .exe
Steps to Reproduce:
Code Snippet:
Expected Behavior:
The program should execute the asynchronous tasks spawned by task.spawn, complete the loop, display the completion prompt, and return control back to the shell prompt
Actual Behavior:
The program enters an infinite loop, continuously spawning asynchronous tasks without completing the loop or displaying the completion prompt, effectively hanging and preventing it from exiting back to the shell
Environment:
Operating System: Windows 10 Home Lua Version: 0.8.3