backgroundtask

package
v0.0.0-...-aded332 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

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

type IdleDeadline struct {
	// Value_JS holds a reference to a javascript value
	Value_JS js.Value
}

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

type IdleRequestCallback js.Func

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

type Union

type Union struct {
	Value js.Value
}

func UnionFromJS

func UnionFromJS(value js.Value) *Union

func (*Union) JSValue

func (u *Union) JSValue() js.Value

Jump to

Keyboard shortcuts

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