prototype

A container of methods for the variant.

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.

Documentation

A container of methods for the variant.

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 isCancelled
Deprecated
matchWith(pattern)
Experimental
toString()
Experimental

Source Code

Defined in source/adt/union/union.js at line 95, column 25
InternalConstructor.prototype
Stability
experimental
Licence
MIT
Module
folktale/adt/union/union
Authors
Copyright
(c) 2013-2017 Quildreen Motta, and CONTRIBUTORS
Authors
  • Quildreen Motta
Maintainers
  • Quildreen Motta <queen@robotlolita.me> (http://robotlolita.me/)