scala-hamsters / hamsters

A mini Scala utility library
Apache License 2.0
291 stars 23 forks source link

FutureOps.fromOption #128

Closed loicdescotte closed 4 years ago

loicdescotte commented 5 years ago

To avoid wrapping in Future.successful / Future.failed.

loicdescotte commented 4 years ago

FutureOps.fromEither and FutureOps.fromOption already exists in hamsters, Future.fromTry too in stdlib