Lock
values.
Java_exception
if the current thread does not hold the
associated lockJava_exception
if the thread is interruptedawait_time c t u
is similar to await c
, except that the current
thread will at most wait for t
(time value whose unit is u
).
Returns whether the condition was signaled; see
await(...).Java_exception
if the current thread does not hold the
associated lockJava_exception
if the thread is interruptedawait_nanos c n
is similar to await c
, except that the current
thread will at most wait for n
nanoseconds. Returns the duration of
the wait, a negative value if the condition was not signaled; see
awaitNanos(...).Java_exception
if the current thread does not hold the
associated lockJava_exception
if the thread is interruptedawait
except that the thread cannot be interrupted; see
awaitUninterruptibly(...).Java_exception
if the current thread does not hold the
associated lockawait_until c d
waits until the date d
is reached.
Returns whether the date was actually reached; see
awaitUntil(...).Java_exception
if the current thread does not hold the
associated lockJava_exception
if the thread is interruptedJava_exception
if the current thread does not hold the
associated lockJava_exception
if the current thread does not hold the
associated lockwrap obj
wraps the reference obj
into an option type:Some x
if obj
is not null
;None
if obj
is null
.unwrap obj
unwraps the option obj
into a bare reference:Some x
is mapped to x
;None
is mapped to null
.