abortsignal

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAnAbortSignal = errors.New("The given value must be an AbortSignal")
	ErrNotImplemented   = errors.New("Browser not implemented AbortSignal")
)

Functions

func GetInterface

func GetInterface() js.Value

GetInterface get the JS interface abortsignal

Types

type AbortSignal

type AbortSignal struct {
	eventtarget.EventTarget
}

AbortSignal struct

func NewFromJSObject

func NewFromJSObject(obj js.Value) (AbortSignal, error)

func (AbortSignal) Abort

func (a AbortSignal) Abort() (AbortSignal, error)

func (AbortSignal) Aborted

func (a AbortSignal) Aborted() (bool, error)

func (AbortSignal) OnAbort

func (a AbortSignal) OnAbort(handler func(e event.Event)) (js.Func, error)

type AbortSignalFrom

type AbortSignalFrom interface {
	AbortSignal_() AbortSignal
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL