Module
Effect.AbortController
- Package
- purescript-js-abort-controller
- Repository
- purescript-contrib/purescript-js-abort-controller
Bindings for the AbortController
and AbortSignal
classes.
See each type's respective documentation.
#new Source
new :: Effect (AbortController)
#abortReasonImpl Source
abortReasonImpl :: EffectFn2 (AbortController) (Foreign) (Unit)
#AbortSignal Source
data AbortSignal
Node docs: https://nodejs.org/docs/latest/api/globals.html#class-abortsignal Web docs: https://dom.spec.whatwg.org/#interface-AbortSignal
Instances
#signal Source
signal :: AbortController -> AbortSignal
#newSignalImpl Source
newSignalImpl :: EffectFn1 (Foreign) (AbortSignal)
#newDelayImpl Source
newDelayImpl :: EffectFn1 (Int) (AbortSignal)
#onAbortImpl Source
onAbortImpl :: EffectFn2 (AbortSignal) (Effect Unit) (Unit)
#abortedImpl Source
abortedImpl :: EffectFn1 (AbortSignal) (Boolean)
#throwIfAborted Source
throwIfAborted :: AbortSignal -> Effect (Maybe Foreign)
- Modules
- Effect.
AbortController