markDead

open override fun markDead(requestId: RequestId, response: Response?): Result<Unit, PostboxError>

Mark a request as permanently failed (dead) with an optional response.

Return

Parameters

requestId

the id of the request to mark as dead

response

the response to store with the dead request (optional)

If a response was not previously stored, the new response will be stored. Subsequent responses will be ignored.