Function use_event_source_with_options

Source
pub fn use_event_source_with_options<T, C>(
    url: &str,
    options: UseEventSourceOptions<T>,
) -> UseEventSourceReturn<T, C::Error, impl Fn() + Clone + Send + Sync + 'static, impl Fn() + Clone + Send + Sync + 'static>
where T: Clone + PartialEq + Send + Sync + 'static, C: Decoder<T, Encoded = str>, C::Error: Send + Sync,
Expand description

Version of use_event_source that takes a UseEventSourceOptions. See use_event_source for how to use.