Requests a CPU burst execution context. The "callback" function argument will be ran with it's own CPU timeout.
CPU burst contexts may run to completion and return a result, which is passed to the parent execution context. Furthermore, the context runs in-scope, so you can share any local variables between the main context and burst contexts.
The second argument is an optional amount of maximum CPU milliseconds to consume for this burst request. By default, the limit is 1000ms. You may choose between 200ms and 3000ms.
Any unused time greater than 200ms will be returned to your burst quota bucket for re-use in future burst requests. Your CPU burst quota bucket resets every 10 minutes. Information on your quota bucket is available in the return value See pylon.ICpuBurstResult for more info.
The method to use as the entry-point for the child execution context.
The amount of time in milliseconds to burst. Default: 1000ms
A promise that resolves with a pylon.ICpuBurstResult value of the callback, if the burst request and callback succeeded.
Generated using TypeDoc