Skip to main content

stream_message_deletions_with_callback

Function stream_message_deletions_with_callback 

Source
pub fn stream_message_deletions_with_callback<Context>(
    context: Context,
    keep_alive: impl MaybeSend + 'static,
    callback: impl FnMut(Result<DecodedMessage, SubscribeError>) + MaybeSend + 'static,
    on_close: impl FnOnce() + MaybeSend + 'static,
) -> impl StreamHandle<StreamOutput = Result<(), SubscribeError>>
where Context: XmtpSharedContext + 'static,
Expand description

keep_alive lives as long as the stream task.