Module

Concur.Core.Discharge

Package
purescript-concur-core
Repository
purescript-concur/purescript-concur-core

#discharge Source

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 Source

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