backgroundtask

package
v0.0.0-...-41cedfc Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: BSD-3-Clause Imports: 2 Imported by: 1

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.Value) *IdleDeadline

IdleDeadlineFromJS is casting a js.Value into IdleDeadline.

func IdleDeadlineFromWrapper

func IdleDeadlineFromWrapper(input core.Wrapper) *IdleDeadline

IdleDeadlineFromJS is casting from something that holds a js.Value 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

JSValue returns the js.Value or js.Null() if _this is nil

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.Value) *IdleRequestOptions

IdleRequestOptionsFromJS is allocating a new IdleRequestOptions object and copy all values in the value javascript object.

func (*IdleRequestOptions) JSValue

func (_this *IdleRequestOptions) JSValue() js.Value

JSValue is allocating a new javascript 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