Skip to main content

stream_preferences_with_callback

Function stream_preferences_with_callback 

Source
pub fn stream_preferences_with_callback<Context>(
    context: Context,
    keep_alive: impl MaybeSend + 'static,
    callback: impl FnMut(Result<Vec<PreferenceUpdate>, 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.