compareExchange property
({num Function(Object typedArray, num index, num expectedValue, num replacementValue) $1, int Function(_IterableLike$<IterableIterator<int> > typedArray, num index, int expectedValue, int replacementValue) $2})
get
compareExchange
Overload accessor: $1, $2
Implementation
({
/// Replaces the value at the given position in the array if the original value equals the given
/// expected value, returning the original value. Until this atomic operation completes, any
/// other read or write operation against the array will block.
_i2.num Function(
_i2.Object typedArray,
_i2.num index,
_i2.num expectedValue,
_i2.num replacementValue,
) $1,
/// Replaces the value at the given position in the array if the original value equals the given
/// expected value, returning the original value. Until this atomic operation completes, any
/// other read or write operation against the array will block.
_i2.int Function(
_IterableLike$<_i6.IterableIterator<_i2.int>> typedArray,
_i2.num index,
_i2.int expectedValue,
_i2.int replacementValue,
) $2,
}) get compareExchange => (
$1: _compareExchange$1,
$2: _compareExchange$2,
);