Skip to main content

stream_conversations_with_callback_dispatch

Function stream_conversations_with_callback_dispatch 

Source
pub fn stream_conversations_with_callback_dispatch<C>(
    context: C,
    keep_alive: impl MaybeSend + 'static,
    conversation_type: Option<ConversationType>,
    include_duplicate_dms: bool,
    callback: impl FnMut(Result<MlsGroup<C>, SubscribeError>) + MaybeSend + 'static,
    on_close: impl FnOnce() + MaybeSend + 'static,
) -> impl StreamHandle<StreamOutput = Result<(), SubscribeError>>
Expand description

keep_alive lives until the subscription opens.