awaitIndex

abstract suspend fun awaitIndex(): Int

Same as Awaitable.await, but returns the index of the first completed element.