pub fn publish_background_task(&self, label: impl Into<String>) -> BackgroundTaskHandle {
        let label = label.into();
        let handle = self.next_process_handle.get();
        self.next_process_handle.set(handle + 1);
        let notification = StatusNotification::BackgroundTaskStarted { label, handle };
        executor::global::spawn(self.publisher.publish(notification));
        handle
    }
/// Publish a notification about new process (see [`StatusNotification::ProcessStarted`]).
///
/// Returns the handle to be used when notifying about process finishing.
Publish a notification about new process .
Returns the handle to be used when notifying about process finishing.
Publish a notification about new process . Returns the handle to be used when notifying about process finishing .
pub fn publish_background_task(&self, label: impl Into<String>) -> BackgroundTaskHandle {
        let label = label.into();
        let handle = self.next_process_handle.get();
        self.next_process_handle.set(handle + 1);
        let notification = StatusNotification::BackgroundTaskStarted { label, handle };
        executor::global::spawn(self.publisher.publish(notification));
        handle
    }
pub fn publish_background_task ( & self , label : impl Into < String > ) -> BackgroundTaskHandle { let label = label . into ( ) ; let handle = self . next_process_handle . get ( ) ; self . next_process_handle . set ( handle + 1 ) ; let notification = StatusNotification :: BackgroundTaskStarted { label , handle } ; executor :: global :: spawn ( self . publisher . publish ( notification ) ) ; handle }
Publish a notification about new process (see [`StatusNotification::ProcessStarted`]).
Publish a notification about new process ( see [ ` StatusNotification :: ProcessStarted ` ] ) .
&self
label
impl Into<String>
&self
label
impl Into<String>