Broadcast Frame Clock
class BroadcastFrameClock(onNewAwaiters: () -> Unit?) : MonotonicFrameClock
Content copied to clipboard
A simple frame clock.
This implementation is intended for low-contention environments involving low total numbers of threads in a pool on the order of ~number of CPU cores available for UI recomposition work, while avoiding additional allocation where possible.
onNewAwaiters will be invoked whenever the number of awaiters has changed from 0 to 1.
Constructors
BroadcastFrameClock
Link copied to clipboard
Functions
get
Link copied to clipboard
open operator override fun <E : CoroutineContext.Element> get(key: CoroutineContext.Key<E>): E?
Content copied to clipboard
minusKey
Link copied to clipboard
open override fun minusKey(key: CoroutineContext.Key<*>): CoroutineContext
Content copied to clipboard
plus
Link copied to clipboard
withFrameNanos
Link copied to clipboard