Dart Fibers is a patched dart-sdk which allows you to use coroutine mechanism in the Dart language.
To use coroutines you need to compile Dart VM from this branch.
Then you need to compile main.dart
to main.exe
with command dart compile exe main.dart
Now run main.exe
:
before start
main: entry
child: entry
main: after child transfer
main -> child -> main -> child
after start
- Implement JIT mode
- Implement Debug (breakpoints handling after coroutine transfer)
- Implement other architectures (arm64 + riscv) and platforms (macos + windows)
- Implement channels
- Implement FFI
- Implement
Future
andTimer
support during coroutine idle - Optimize
- Add more tests and benchmarks
- Support
JS
andWASM
?