enqueue

suspend fun MutationQueue.enqueue(key: MutationKey, endpoint: NetworkEndpoint, retryPolicy: RetryPolicy? = null): MutationHandle

Enqueues a bodyless mutation (e.g. POST /videos/42/like with no request body).


inline suspend fun <B : Any> MutationQueue.enqueue(key: MutationKey, endpoint: NetworkEndpoint, body: B, codec: MutationCodec<B>? = null, retryPolicy: RetryPolicy? = null): MutationHandle

Enqueues a mutation sending body of type B, serialized on execution.