scala.concurrent.SyncVar
A class to provide safe concurrent access to a mutable cell. All methods are synchronized.
Type parameterstype of the contained value
[Since version 2.13.0]
Use `java.util.concurrent.LinkedBlockingQueue with capacity 1` instead.
Wait for this SyncVar to become defined and then get the stored value without modifying it.
Wait for this SyncVar to become defined and then get the stored value without modifying it.
Attributesvalue that is held in this container
Wait at least timeout
milliseconds (possibly more) for this SyncVar
to become defined and then get its value.
Wait at least timeout
milliseconds (possibly more) for this SyncVar
to become defined and then get its value.
time in milliseconds to wait
None
if variable is undefined after timeout
, Some(value)
otherwise
Check whether a value is stored in the synchronized variable.
Check whether a value is stored in the synchronized variable.
AttributesPlace a value in the SyncVar.
Place a value in the SyncVar. If the SyncVar already has a stored value, wait until another thread takes it.
AttributesWait for this SyncVar to become defined and then get the stored value, unsetting it as a side effect.
Wait for this SyncVar to become defined and then get the stored value, unsetting it as a side effect.
Attributesvalue that was held in this container
Wait at least timeout
milliseconds (possibly more) for this SyncVar
to become defined and then get the stored value, unsetting it as a side effect.
Wait at least timeout
milliseconds (possibly more) for this SyncVar
to become defined and then get the stored value, unsetting it as a side effect.
the amount of milliseconds to wait
the value or a throws an exception if the timeout occurs
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4