Wait for the mutex, lock it, run fn and settle like what it returns. The lock passes to the
next waiter, in call order, once fn settles. fn runs after the call returns, even when the
mutex is free.
Aborting signal before the lock is acquired rejects with the signal's reason, or an
AbortErrorDOMException when it is undefined, without running fn. Aborting later does
nothing. Calling runExclusive on the same mutex from inside fn deadlocks
Wait for the mutex, lock it, run
fnand settle like what it returns. The lock passes to the next waiter, in call order, oncefnsettles.fnruns after the call returns, even when the mutex is free.Aborting
signalbefore the lock is acquired rejects with the signal'sreason, or anAbortErrorDOMExceptionwhen it isundefined, without runningfn. Aborting later does nothing. CallingrunExclusiveon the same mutex from insidefndeadlocks