Returns string formatted according to given format
string.
Returns string formatted according to given format
string.
Format strings are as for String.format
(@see java.lang.String.format).
Waits for this SyncVar to become defined at least for
timeout
milliseconds (possibly more), and gets its
value.
Waits for this SyncVar to become defined at least for
timeout
milliseconds (possibly more), and gets its
value.
the amount of milliseconds to wait, 0 means forever
None
if variable is undefined after timeout
, Some(value)
otherwise
Checks whether a value is stored in the synchronized variable
Places a value in the SyncVar.
Places a value in the SyncVar. If the SyncVar already has a stored value, it waits until another thread takes it
Waits for this SyncVar to become defined at least for
timeout
milliseconds (possibly more), and takes its
value by first reading and then removing the value from
the SyncVar.
Waits for this SyncVar to become defined at least for
timeout
milliseconds (possibly more), and takes its
value by first reading and then removing the value from
the SyncVar.
the amount of milliseconds to wait, 0 means forever
the value or a throws an exception if the timeout occurs
on timeout
Waits for this SyncVar to become defined and returns the result
(Since version 2.10.0) Use put
instead, as set
is potentionally error-prone
(Since version 2.10.0) Use take
instead, as unset
is potentionally error-prone
A class to provide safe concurrent access to a mutable cell. All methods are synchronized.
1.0, 10/03/2003