Adds a SiriusFuture[T] interface which adds addListener methods allowing a consumer to register a Runnable callback for when the underlying Akka Future[T] completes. This would enable basic asynchronous composition without having to block the current thread or poll the Future[T] for completion.
This could be a breaking change for any consumer that directly implements the Sirius interface as the return value has been changed from Future[T] to SiriusFuture[T], but consumers of the interface should be fine as SiriusFuture[T] extends Future[T].
Adds a
SiriusFuture[T]
interface which addsaddListener
methods allowing a consumer to register aRunnable
callback for when the underlying AkkaFuture[T]
completes. This would enable basic asynchronous composition without having to block the current thread or poll theFuture[T]
for completion.This could be a breaking change for any consumer that directly implements the
Sirius
interface as the return value has been changed fromFuture[T]
toSiriusFuture[T]
, but consumers of the interface should be fine asSiriusFuture[T]
extendsFuture[T]
.