|
|
|
|
|
by pron
4412 days ago
|
|
With lightweight threads you can spawn as many fibers as you like. Creating and starting a new fiber is basically free. You can start fibers and join them, in any dependency tree structure. Of course, you can keep using futures (what I call semi-blocking API), only futures that block the fiber rather than the thread, when you join them. |
|