Preparing search index...
The search index is not available
Aleph Indexer Framework for Solana/Ethereum/BSC
Aleph Indexer Framework for Solana/Ethereum/BSC
Indexer Core
PendingWorkPool
Class PendingWorkPool<T>
Type Parameters
T
Hierarchy
PendingWorkPool
Index
Constructors
constructor
Properties
coordinator
Job
debounced
Job
options
skip
Sleep
Methods
add
Work
check
Complete
get
get
Count
get
First
Value
get
Pending
Work
handle
Work
has
Finished
load
Pending
Work
remove
Work
run
Job
skip
Next
Sleep
start
stop
Constructors
constructor
new
Pending
Work
Pool
<
T
>
(
options
:
Utils
.
PendingWorkOptions
<
T
>
)
:
Utils
.
PendingWorkPool
<
T
>
Type Parameters
T
Parameters
options:
Utils
.
PendingWorkOptions
<
T
>
Returns
Utils
.
PendingWorkPool
<
T
>
Properties
Protected
coordinator
Job
coordinator
Job
:
undefined
|
JobRunner
Protected
debounced
Job
debounced
Job
:
undefined
|
DebouncedJobRunner
Protected
options
options
:
Utils
.
PendingWorkOptions
<
T
>
Protected
skip
Sleep
skip
Sleep
:
boolean
= false
Methods
add
Work
add
Work
(
work
:
Utils
.
PendingWork
<
T
>
|
Utils
.
PendingWork
<
T
>
[]
)
:
Promise
<
void
>
Parameters
work:
Utils
.
PendingWork
<
T
>
|
Utils
.
PendingWork
<
T
>
[]
Returns
Promise
<
void
>
Protected
check
Complete
check
Complete
(
works
:
Utils
.
PendingWork
<
T
>
[]
)
:
Promise
<
Utils
.
PendingWork
<
T
>
[]
>
Parameters
works:
Utils
.
PendingWork
<
T
>
[]
Returns
Promise
<
Utils
.
PendingWork
<
T
>
[]
>
get
get
(
signature
:
string
)
:
Promise
<
undefined
|
Utils
.
PendingWork
<
T
>
>
Parameters
signature:
string
Returns
Promise
<
undefined
|
Utils
.
PendingWork
<
T
>
>
get
Count
get
Count
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
get
First
Value
get
First
Value
(
)
:
Promise
<
undefined
|
Utils
.
PendingWork
<
T
>
>
Returns
Promise
<
undefined
|
Utils
.
PendingWork
<
T
>
>
Protected
get
Pending
Work
get
Pending
Work
(
chunkSize
?:
number
)
:
Promise
<
Generator
<
Promise
<
void
>
,
any
,
unknown
>
>
Parameters
chunkSize:
number
= 1
Returns
Promise
<
Generator
<
Promise
<
void
>
,
any
,
unknown
>
>
Protected
handle
Work
handle
Work
(
works
:
Utils
.
PendingWork
<
T
>
[]
)
:
Promise
<
number
|
void
>
Parameters
works:
Utils
.
PendingWork
<
T
>
[]
Returns
Promise
<
number
|
void
>
has
Finished
has
Finished
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Protected
load
Pending
Work
load
Pending
Work
(
pendingWorkGen
:
AsyncIterator
<
StorageEntry
<
string
,
Utils
.
PendingWork
<
T
>
>
,
any
,
undefined
>
, size
:
number
)
:
Promise
<
Utils
.
PendingWork
<
T
>
[]
>
Parameters
pendingWorkGen:
AsyncIterator
<
StorageEntry
<
string
,
Utils
.
PendingWork
<
T
>
>
,
any
,
undefined
>
size:
number
Returns
Promise
<
Utils
.
PendingWork
<
T
>
[]
>
remove
Work
remove
Work
(
work
:
Utils
.
PendingWork
<
T
>
|
Utils
.
PendingWork
<
T
>
[]
)
:
Promise
<
void
>
Parameters
work:
Utils
.
PendingWork
<
T
>
|
Utils
.
PendingWork
<
T
>
[]
Returns
Promise
<
void
>
Protected
run
Job
run
Job
(
)
:
Promise
<
number
>
Returns
Promise
<
number
>
skip
Next
Sleep
skip
Next
Sleep
(
)
:
void
Returns
void
start
start
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
stop
stop
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Private
Inherited
Theme
OS
Light
Dark
Modules
Aleph
Indexer
Framework for
Solana/
Ethereum/BSC
Bsc
Indexer
Framework
Ethereum
Indexer
Framework
Indexer
Core
Utils
Indexer
Framework
Solana
Indexer
Framework
buffer
Layouts
Pending
Work
Pool
constructor
coordinator
Job
debounced
Job
options
skip
Sleep
add
Work
check
Complete
get
get
Count
get
First
Value
get
Pending
Work
handle
Work
has
Finished
load
Pending
Work
remove
Work
run
Job
skip
Next
Sleep
start
stop
Generated using
TypeDoc