@wxn0brp/db-core
Preparing search index...
helpers/executor
SmartExecutor
Class SmartExecutor
A smart executor for queuing and executing asynchronous operations with a TTL.
Implements
ExecutorInterface
Index
Constructors
constructor
Properties
collections
ttl
Methods
add
Op
schedule
Cleanup
Constructors
constructor
new
SmartExecutor
(
ttl
?:
number
)
:
SmartExecutor
Parameters
ttl
:
number
= ...
Returns
SmartExecutor
Properties
collections
collections
:
Map
<
string
,
SmartExecutorEntry
>
= ...
ttl
ttl
:
number
= ...
Methods
add
Op
addOp
(
func
:
Function
,
query
:
any
,
collection
:
string
)
:
Promise
<
any
>
Parameters
func
:
Function
query
:
any
collection
:
string
Returns
Promise
<
any
>
schedule
Cleanup
scheduleCleanup
(
key
:
string
,
entry
:
SmartExecutorEntry
)
:
number
Parameters
key
:
string
entry
:
SmartExecutorEntry
Returns
number
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
collections
ttl
Methods
add
Op
schedule
Cleanup
@wxn0brp/db-core
Loading...
A smart executor for queuing and executing asynchronous operations with a TTL.