getAndClearFunction

fun getAndClearFunction(): A_Function

Atomically get and clear reactor.

Return

The reactor function, or nil if the reactor function has already been requested (and the reactor is therefore invalid).