Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/sync
CapabilityHandshake
Class CapabilityHandshake<T>
Type Parameters
T
Index
Constructors
constructor
Accessors
capabilities
complete
pending
Count
Methods
dispose
queue
receive
take
Pending
Constructors
constructor
new
CapabilityHandshake
<
T
>
(
maxPending
?:
number
)
:
CapabilityHandshake
<
T
>
Type Parameters
T
Parameters
maxPending
:
number
= DEFAULT_CAPABILITY_QUEUE_LIMIT
Returns
CapabilityHandshake
<
T
>
Accessors
capabilities
get
capabilities
()
:
SyncCapabilities
|
null
Returns
SyncCapabilities
|
null
complete
get
complete
()
:
boolean
Returns
boolean
pending
Count
get
pendingCount
()
:
number
Returns
number
Methods
dispose
dispose
()
:
void
Returns
void
queue
queue
(
value
:
T
)
:
void
Parameters
value
:
T
Returns
void
receive
receive
(
capabilities
:
SyncCapabilities
)
:
T
[]
Parameters
capabilities
:
SyncCapabilities
Returns
T
[]
take
Pending
takePending
()
:
T
[]
Removes and returns the queued values without settling — for hand-off to a successor.
Returns
T
[]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Accessors
capabilities
complete
pending
Count
Methods
dispose
queue
receive
take
Pending
Field Notes home
Docs
Playground
Field Notes
Loading...
Removes and returns the queued values without settling — for hand-off to a successor.