Agent Maturity Compass API - v1.2.0
Guides
HTTP API
GitHub
Preparing search index...
index
withCpuTimeout
Function withCpuTimeout
withCpuTimeout
<
T
>
(
fn
:
()
=>
Promise
<
T
>
,
limits
:
{
cpuTimeoutMs
:
number
;
ioRateMbps
:
number
;
memoryLimitMb
:
number
;
networkEnabled
:
boolean
;
}
,
)
:
Promise
<
T
>
Create a timeout wrapper that kills execution after cpuTimeoutMs.
Type Parameters
T
Parameters
fn
:
()
=>
Promise
<
T
>
limits
:
{
cpuTimeoutMs
:
number
;
ioRateMbps
:
number
;
memoryLimitMb
:
number
;
networkEnabled
:
boolean
;
}
Returns
Promise
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Guides
HTTP API
GitHub
Agent Maturity Compass API - v1.2.0
Loading...
Create a timeout wrapper that kills execution after cpuTimeoutMs.