Resolved

The state of a future that has been successfully resolved with a value.

This feature is experimental!

This API is still experimental, so it may change or be removed in future versions. You should not rely on it for production applications.

Signature

Resolved(value)

Documentation

The state of a future that has been successfully resolved with a value.

Static properties

Debugging

inspect: toString()

A textual representation of the state

Experimental
prototype

A container of methods for the variant.

Experimental
toString()

A textual representation of the state

Experimental

Special Values

get constructor

The constructor for the variant

Experimental
get tag

The internal tag of the variant.

Experimental
get type

The internal type of the variant.

Experimental

Testing and Comparing

hasInstance(value)

True if the value is an instance of the state.

Experimental

Instance (prototype) properties

Fantasy Land

fantasy-land/equals(that)

Part of the Setoid instance for Fantasy Land 2.x+. See the equals method for details.

Meta-programming

derive(...derivations)

Allows a function to provide functionality to variants in an union.

ExperimentalInherited

Special Values

get constructor

The constructor for the variant

variants

The variants in the ExecutionState

ExperimentalInherited

Testing and Comparing

hasInstance(value)

True if the value is any execution state instance.

ExperimentalInherited

Variant

Cancelled()

The state of a future that has been cancelled.

ExperimentalInherited
Pending()

The state of a future that's still not resolved.

ExperimentalInherited
Rejected(reason)

The state of a future that has been resolved with a failure.

ExperimentalInherited
Resolved(value)

The state of a future that has been successfully resolved with a value.

ExperimentalInherited

(Uncategorised)

equals(value)
Experimental
get isResolved
Deprecated
matchWith(pattern)
Experimental
toString()
Experimental

Source Code

Resolved(value) {
    return { value };
  }
Stability
experimental
Licence
MIT
Module
folktale/concurrency/future/_execution-state
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)