Module

Concur.Core.Discharge

#discharge

discharge :: forall a v. Monoid v => (Either Error (Widget v a) -> Effect Unit) -> Widget v a -> Effect v

Discharge a widget.

  1. Runs the Effect action
  2. Forks the Aff action
  3. Extracts and returns the view

#dischargePartialEffect

dischargePartialEffect :: forall a v. Monoid v => Widget v a -> Effect (Tuple (Widget v a) v)

Discharge only the top level blocking effect of a widget (if any) to get access to the view Returns the view, and the remaining widget

Modules