FutureOutcome

Companion object to FutureOutcomes that contains factory methods for creating already-completed FutureOutcomes.

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

Factory method that creates an already completed FutureOutcome with a Canceled result.

Factory method that creates an already completed FutureOutcome with a Canceled result.

def canceled(message: String): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified message.

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified message.

def canceled(cause: Throwable): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified cause.

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified cause.

def canceled(message: String, cause: Throwable): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified message and cause.

Factory method that creates an already completed FutureOutcome with a Canceled result whose TestCanceledException contains the specified message and cause.

Factory method that creates an already completed FutureOutcome with a Failed result.

Factory method that creates an already completed FutureOutcome with a Failed result.

def failed(message: String): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified message.

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified message.

def failed(message: String, cause: Throwable): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified message and cause.

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified message and cause.

def failed(cause: Throwable): FutureOutcome

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified cause.

Factory method that creates an already completed FutureOutcome with a Failed result containing a TestFailedException with the specified cause.

Factory method that creates an already completed FutureOutcome with a Pending result.

Factory method that creates an already completed FutureOutcome with a Pending result.

Factory method that creates an already completed FutureOutcome with a Succeeded result.

Factory method that creates an already completed FutureOutcome with a Succeeded result.