lampepfl / gears

A strawman for a low-level async library in Scala 3.
https://lampepfl.github.io/gears/
Apache License 2.0
257 stars 26 forks source link

Use interruptGuard in VThreadScheduler #37

Closed m8nmueller closed 10 months ago

m8nmueller commented 11 months ago

A simple solution to this double scheduling. Allocate AtomicBoolean vs a new virtual thread.

Happy New Year! 🎉

natsukagami commented 10 months ago

@m8nmueller @He-Pin I implemented the VarHandle approach, please have a look.