▲ | HaroldCindy 2 days ago | |||||||||||||||||||||||||
I'm the contractor responsible for SL's Luau VM integration, appreciate the kind words about the Luau integration! We're still in figuring out our async strategy for user-facing APIs to be honest, so these references are super helpful. We already have preemptive scheduling of execution, but it's most likely to be some kind of wrapper around `coroutine.create()` where an event loop is responsible for driving execution flow and internal `coroutine.yield()`s let you specify what you're `await`ing. We'll likely have an RFC for how that will all work within the year, but several users have written their own bespoke `async` / `await` implementations for SL in Lua already. | ||||||||||||||||||||||||||
▲ | ChocolateGod 2 days ago | parent [-] | |||||||||||||||||||||||||
> bespoke `async` / `await` implementations for SL in Lua already. I did see these as well as some eventloop-like wrappers, but it's cool to have a built in implementation would be great so each script doesn't need to ship it. How do you plan on migrating data from Mono's VM to Luau? Off the top of my head I can't think of any method that would be 100% reliable. | ||||||||||||||||||||||||||
|