loop

inline fun <ERROR CLASS>.loop(action: (Long) -> Unit): Nothing

Infinite loop that reads this atomic variable and performs the specified action on its value.


inline fun <T> <ERROR CLASS><T>.loop(action: (T) -> Unit): Nothing