Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BehaviorFuture<A>

Create a future from a pushing behavior. The future occurs when the behavior pushes its next value. Constructing a BehaviorFuture is impure and should not be done direcly.

Type parameters

  • A

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private b

b: Behavior<A>

Protected listeners

listeners: Consumer<A>[]

occured

occured: boolean

value

value: A

Methods

beginPulling

  • beginPulling(): void

chain

  • chain<B>(f: function): Future<B>

endPulling

  • endPulling(): void

listen

map

  • map<B>(f: function): Future<B>
  • Type parameters

    • B

    Parameters

    • f: function
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns Future<B>

mapTo

of

push

  • push(a: A): void

resolve

  • resolve(val: A): void

subscribe

  • subscribe(f: function): void
  • Parameters

    • f: function
        • (a: A): void
        • Parameters

          • a: A

          Returns void

    Returns void

Static lift

Static of

Generated using TypeDoc