final case class Poll[+A](poll: RIO[Any, Option[Try[A]]]) extends AnyVal with Product with Serializable
Representation of a running asyncronous computation that can be polled.
Note that, unlike Futures, operations on an Poll don't require an execution context and
might be applied sequentially every time poll is called.
While this might be inneficient, this is by design, to simplify multiplatform development.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Poll
- Serializable
- Product
- Equals
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- def as[B](x: B): Poll[B]
Changes the result of this operation to another value.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def flatMap[B](f: (A) => Poll[B]): Poll[B]
Combines two operations by applying a function to the result of the first operation.
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[B](f: (A) => B): Poll[B]
Maps the result of this operation.
- val poll: RIO[Any, Option[Try[A]]]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def transform[B](f: (Try[A]) => Try[B]): Poll[B]
Transforms the result of this operation.
- def unit: Poll[Unit]
Changes the result of this operation unit.
- def zip[B](that: Poll[B]): Poll[(A, B)]
Combines two operations by combining their results into a tuple.
- def zipWith[B, C](that: Poll[B])(f: (A, B) => C): Poll[C]
Combines two operations by combining their results with the given function.