expectOnCreate

open fun expectOnCreate(timeout: Long)(source)

Blocks until a single onCreate lifecycle event has been received.

Lifecycle events are sticky; if any events were received prior to calling this method and an event has been received, this method will return immediately.

Parameters

timeout

maximum amount of time to wait for an onCreate event

Throws

if the lock is interrupted