lampepfl / gears

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

Use interruptGuard in VThreadScheduler #37

Closed m8nmueller closed 7 months ago

m8nmueller commented 8 months ago

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

Happy New Year! 🎉

natsukagami commented 7 months ago

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