p
faithful
package faithful
- Source
- faithful.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- faithful
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Type Members
-
type
Future[+A] = Function2[Function1[A, _], Function1[Throwable, _], _]
Future[A]
is only defined as a type alias for((success: A => _), failure: js.Any => _) => _
.Future[A]
is only defined as a type alias for((success: A => _), failure: js.Any => _) => _
.So, it is just a function that accepts two functions. The former will eventually be called when the
A
value is resolved. The latter will eventually be called to signal an error. -
final
class
Promise[A] extends AnyRef
An object which can be completed with a value or failed with an exception.