Async

izumi.functional.bio.impl.MiniBIOAsync.Async
final case class Async[+E, +A](register: (ExecutionContext, Uninterrupted[E, A] => Unit) => Unit) extends MiniBIOAsync[E, A]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MiniBIOAsync[E, A]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
final def runOnEC(ec: ExecutionContext): Future[Uninterrupted[E, A]]

Runs the effect on the provided ExecutionContext

Runs the effect on the provided ExecutionContext

Attributes

Note

Even for synchronous effects, execution will be deferred to the EC.

Inherited from:
MiniBIOAsync
final def runSyncToFirstAsyncBoundary(): Either[Uninterrupted[E, A], ExecutionContext => Future[Uninterrupted[E, A]]]

Runs the effect synchronously until the first async boundary.

Runs the effect synchronously until the first async boundary.

Attributes

Returns

Left if the effect completes synchronously, or Right with a continuation if async execution is needed.

Inherited from:
MiniBIOAsync
final def runSyncToFirstAsyncBoundaryOrOnEC(ec: ExecutionContext): Future[Uninterrupted[E, A]]

Runs the effect on current thread up to first async boundary and then migrates execution to provided ExecutionContext

Runs the effect on current thread up to first async boundary and then migrates execution to provided ExecutionContext

Attributes

Returns

Completed future if there were no Async nodes, completable future otherwise

Inherited from:
MiniBIOAsync