linkedin / parseq

Asynchronous Java made easier
Apache License 2.0
1.17k stars 266 forks source link

Introduce Task::fromTry factory method #275

Closed zackthehuman closed 4 years ago

zackthehuman commented 4 years ago

This adds a fromTry static method to the Task class which captures the success and failure semantics of Try expressing them as a Task.

Closes #274