isInFlight

suspend fun isInFlight(key: K): Boolean

Returns true while an execution for key is in flight.

The answer is a snapshot; the flight may finish immediately after this function returns.

Cancellation: waiting for the internal map lock is cancellable and rethrows.