case class Poll[+A](poll: RIO[Any, Option[Try[A]]]) extends 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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → 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
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
flatMap[B](f: (A) ⇒ Poll[B]): Poll[B]
Combines two operations by applying a function to the result of the first operation.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
map[B](f: (A) ⇒ B): Poll[B]
Maps the result of this operation.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val poll: RIO[Any, Option[Try[A]]]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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.