consume

fun consume(block: (T) -> Unit)

If this event has not been consumed yet it will call block with data, otherwise it won't call block at all.

Parameters

block

gets called with data if it has not been consumed before.