Documentation ¶
Overview ¶
Package backgroundtask is to run cooperatively schedule background tasks such that they do not introduce delays to other high priority tasks that share the same event loop, such as input processing, animations and frame compositing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IdleDeadline ¶
class: IdleDeadline
func IdleDeadlineFromJS ¶
func IdleDeadlineFromJS(value js.Wrapper) *IdleDeadline
IdleDeadlineFromJS is casting a js.Wrapper into IdleDeadline.
func (*IdleDeadline) DidTimeout ¶
func (_this *IdleDeadline) DidTimeout() bool
DidTimeout returning attribute 'didTimeout' with type bool (idl: boolean).
func (*IdleDeadline) JSValue ¶
func (_this *IdleDeadline) JSValue() js.Value
func (*IdleDeadline) TimeRemaining ¶
func (_this *IdleDeadline) TimeRemaining() (_result float64)
type IdleRequestCallback ¶
IdleRequestCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func IdleRequestCallbackToJS ¶
func IdleRequestCallbackToJS(callback IdleRequestCallbackFunc) *IdleRequestCallback
type IdleRequestCallbackFunc ¶
type IdleRequestCallbackFunc func(deadline *IdleDeadline)
callback: IdleRequestCallback
func IdleRequestCallbackFromJS ¶
func IdleRequestCallbackFromJS(_value js.Value) IdleRequestCallbackFunc
type IdleRequestOptions ¶
type IdleRequestOptions struct {
Timeout uint
}
dictionary: IdleRequestOptions
func IdleRequestOptionsFromJS ¶
func IdleRequestOptionsFromJS(value js.Wrapper) *IdleRequestOptions
IdleRequestOptionsFromJS is allocating a new IdleRequestOptions object and copy all values from input javascript object
func (*IdleRequestOptions) JSValue ¶
func (_this *IdleRequestOptions) JSValue() js.Value
JSValue is allocating a new javasript object and copy all values