notify

fun notify(typedArray: Int32Array<*>, index: Int, count: Int = definedExternally): Int(source)

Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.

Parameters

typedArray

A shared Int32Array.

index

The position in the typedArray to wake up on.

count

The number of sleeping agents to notify. Defaults to +Infinity.


fun notify(typedArray: BigInt64Array<*>, index: Int, count: Int = definedExternally): Int(source)

Wakes up sleeping agents that are waiting on the given index of the array, returning the number of agents that were awoken.

Parameters

typedArray

A shared BigInt64Array.

index

The position in the typedArray to wake up on.

count

The number of sleeping agents to notify. Defaults to +Infinity.