KC's Workspace
Github
Preparing search index...
@kcconfigs/vitest
<internal>
PoolWorker
Interface PoolWorker
interface
PoolWorker
{
cacheFs
?:
boolean
;
canReuse
?:
(
task
:
PoolTask
)
=>
boolean
;
deserialize
:
(
data
:
unknown
)
=>
unknown
;
name
:
string
;
off
:
(
event
:
string
,
callback
:
(
arg
:
any
)
=>
void
)
=>
void
;
on
:
(
event
:
string
,
callback
:
(
arg
:
any
)
=>
void
)
=>
void
;
reportMemory
?:
boolean
;
send
:
(
message
:
WorkerRequest
)
=>
void
;
start
:
()
=>
Promise
<
void
>
;
stop
:
()
=>
Promise
<
void
>
;
}
Index
Properties
cache
Fs?
can
Reuse?
deserialize
name
off
on
report
Memory?
send
start
stop
Properties
Optional
Readonly
cache
Fs
cacheFs
?:
boolean
Optional
can
Reuse
canReuse
?:
(
task
:
PoolTask
)
=>
boolean
This is called on workers that already satisfy certain constraints:
The task has the same project
The task has the same environment
deserialize
deserialize
:
(
data
:
unknown
)
=>
unknown
Readonly
name
name
:
string
off
off
:
(
event
:
string
,
callback
:
(
arg
:
any
)
=>
void
)
=>
void
on
on
:
(
event
:
string
,
callback
:
(
arg
:
any
)
=>
void
)
=>
void
Optional
Readonly
report
Memory
reportMemory
?:
boolean
send
send
:
(
message
:
WorkerRequest
)
=>
void
start
start
:
()
=>
Promise
<
void
>
stop
stop
:
()
=>
Promise
<
void
>
Settings
Member Visibility
Protected
External
Internal
Beta
Alpha
Theme
OS
Light
Dark
On This Page
Properties
cache
Fs
can
Reuse
deserialize
name
off
on
report
Memory
send
start
stop
Github
KC's Workspace
Loading...
This is called on workers that already satisfy certain constraints: