Fiber API questions
fabtud at gmail.com
Sat Oct 27 15:59:06 UTC 2018
Hi, I have some questions about the current "Fiber" API:
- Why the constructors accepts only a "Runnable" and not a "Callable"?
- Why on the other hand the static "Fiber#schedule" method doesn't return a
"Fiber" but rather a "CompletableFuture"?
This allows "Fiber" to avoid being generic (is there a specific reason for
that BTW?) but it forces the user to choose between getting back a "Fiber"
reference and being able to throw checked exceptions in the fiber code.
More information about the loom-dev