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.
IdleDeadlineFromJS is casting a js.Wrapper into IdleDeadline.
DidTimeout returning attribute 'didTimeout' with type bool (idl: boolean).
Call Release() when done to release resouces allocated to this type.
JSValue is allocating a new javasript object and copy all values