getAndSet method

T getAndSet(
  1. T newValue
)

Atomically sets the value to the given newValue and returns the old value.

Implementation

external T getAndSet(T newValue);