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