|
| __init__ (self, T initial_value) |
|
T | get (self) |
|
None | set (self, T new_value) |
|
T | get_and_set (self, T new_value) |
|
bool | compare_and_set (self, T expected_value, T new_value) |
|
T | get_and_update (self, Callable[[T], T] update_function) |
|
T | update_and_get (self, Callable[[T], T] update_function) |
|
T | get_and_accumulate (self, T x, Callable[[T, T], T] accumulator) |
|
T | accumulate_and_get (self, T x, Callable[[T, T], T] accumulator) |
|
This has the same API as Java's AtomicReference, but it doesn't make any sense in the Python runtime.
The point of keeping it is that it makes the port from Kotlin more 1:1
Definition at line 6 of file Atomic.py.