2 ms·
- Cannot interop with other languages/VMs that do async differently. The nice thing about promise-based async is that it's very easy to map to straight C ABI c
by int_19h 6y ago
- Cannot interop with other languages/VMs that do async differently.
The nice thing about promise-based async is that it's very easy to map to straight C ABI callbacks, which means that it can be fully cross-language. Green threads are runtime-specific.
- Ironlink 6y ago"Cannot" seems a bit harsh. CompletableFuture isn't going away, and is made for callback situations. With green threads being "free" (you can have millions), it might be reasonable to just block your green thread until the callback arrives.
- deleted 6y ago[deleted]