puniverse / quasar

Fibers, Channels and Actors for the JVM
http://docs.paralleluniverse.co/quasar/
Other
4.56k stars 575 forks source link

Adding Suspendable Functional Interfaces #259

Open MatanSabag opened 7 years ago

MatanSabag commented 7 years ago

Java's built-in functional interfaces (such as Consumer) don't support Fibers because they don't throw SuspendableExecution.

Adding a library for that is needed. In my own projects, I added some (such as SuspendableConsumer), and I can find time to work on it and contribute it if you wish.

Matan

pron commented 7 years ago

Sure, but as a separate project first. Just some interface definitions, right?

MatanSabag commented 7 years ago

Yes, exactly, copying the same interface definitions with the appropriate Suspendable modification. Should I open a github project for that and send a link to you here when it's done?

pron commented 7 years ago

Yes, please.