3 ms·
Can this be used for UI callbacks as well, like async/await in C# and coroutines in Kotlin? In other words, with an appropriate fiber scheduler, could I start
by ptx 4y ago
Can this be used for UI callbacks as well, like async/await in C# and coroutines in Kotlin?
In other words, with an appropriate fiber scheduler, could I start a function on the UI thread, suspend it while performing some background operation and then resume the same function again on the UI thread?
- WJW 4y agoYes, that is one of the use cases that it could be used for. It does require of course that your UI library understands fibers, and as I understand it most ruby UI libraries depend heavily on C libraries that are not designed with Ruby fibers in mind.
- deleted 4y ago[deleted]