@bluelibs/runner - v5.5.0
Preparing search index...
IPlatformAdapter
Interface IPlatformAdapter
interface
IPlatformAdapter
{
clearTimeout
:
PlatformClearTimeout
;
id
:
PlatformId
;
init
:
()
=>
Promise
<
void
>
;
setTimeout
:
PlatformSetTimeout
;
createAsyncLocalStorage
<
T
>
()
:
IAsyncLocalStorage
<
T
>
;
exit
(
code
:
number
)
:
void
;
getEnv
(
key
:
string
)
:
string
|
undefined
;
hasAsyncLocalStorage
()
:
boolean
;
onShutdownSignal
(
handler
:
()
=>
void
)
:
()
=>
void
;
onUncaughtException
(
handler
:
(
error
:
unknown
)
=>
void
)
:
()
=>
void
;
onUnhandledRejection
(
handler
:
(
reason
:
unknown
)
=>
void
)
:
()
=>
void
;
}
Implemented by
PlatformAdapter
Index
Properties
clear
Timeout
id
init
set
Timeout
Methods
create
Async
Local
Storage
exit
get
Env
has
Async
Local
Storage
on
Shutdown
Signal
on
Uncaught
Exception
on
Unhandled
Rejection
Properties
clear
Timeout
clearTimeout
:
PlatformClearTimeout
Readonly
id
id
:
PlatformId
init
init
:
()
=>
Promise
<
void
>
set
Timeout
setTimeout
:
PlatformSetTimeout
Methods
create
Async
Local
Storage
createAsyncLocalStorage
<
T
>
()
:
IAsyncLocalStorage
<
T
>
Type Parameters
T
Returns
IAsyncLocalStorage
<
T
>
exit
exit
(
code
:
number
)
:
void
Parameters
code
:
number
Returns
void
get
Env
getEnv
(
key
:
string
)
:
string
|
undefined
Parameters
key
:
string
Returns
string
|
undefined
has
Async
Local
Storage
hasAsyncLocalStorage
()
:
boolean
Returns
boolean
on
Shutdown
Signal
onShutdownSignal
(
handler
:
()
=>
void
)
:
()
=>
void
Parameters
handler
:
()
=>
void
Returns
()
=>
void
on
Uncaught
Exception
onUncaughtException
(
handler
:
(
error
:
unknown
)
=>
void
)
:
()
=>
void
Parameters
handler
:
(
error
:
unknown
)
=>
void
Returns
()
=>
void
on
Unhandled
Rejection
onUnhandledRejection
(
handler
:
(
reason
:
unknown
)
=>
void
)
:
()
=>
void
Parameters
handler
:
(
reason
:
unknown
)
=>
void
Returns
()
=>
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
clear
Timeout
id
init
set
Timeout
Methods
create
Async
Local
Storage
exit
get
Env
has
Async
Local
Storage
on
Shutdown
Signal
on
Uncaught
Exception
on
Unhandled
Rejection
@bluelibs/runner - v5.5.0
Loading...