consume

abstract suspend fun consume(shardId: Int, events: SharedFlow<Event>)(source)

Suspends until the Gateway with the given shardId is allowed to Identify.

Identifying is considered complete once Ready, InvalidSession or Close is observed in events.

Throws