store

abstract fun store(requestId: RequestId, request: Request): Result<RequestProcessingStatus, PostboxError>

Store a request in the Postbox for later processing.

Return

the status of the request processing

//TODO: test storing after processing/dead

Parameters

pending

the request to store, which includes an id and the request itself

If the request is already stored, it will ignore the new value and return the status of the existing one.