new ComputationLock($b)
- Source:
.
Unused
Parameters:
Name | Type | Description |
---|---|---|
$b |
object | |
$b.token |
string | |
$b.ExpireTimestamp |
Date |
Members
ExpireTimestamp :Date
- Source:
Type:
- Date
(readonly) IsLocked
- Source:
.
Is the lock currently in use
Token :string
- Source:
Type:
- string
Methods
TryExtend(token, duration) → {Boolean}
- Source:
.
Parameters:
Name | Type | Description |
---|---|---|
token |
* | |
duration |
* |
Returns:
- Type
- Boolean
TryLock(duration) → {Boolean}
- Source:
.
Try to Lock
Parameters:
Name | Type | Description |
---|---|---|
duration |
Date |
Returns:
- Type
- Boolean
TryRelease(token) → {Boolean}
- Source:
.
Parameters:
Name | Type | Description |
---|---|---|
token |
* |
Returns:
- Type
- Boolean