logo
pub async fn worker(
    working: Receiver<WorkingData>,
    errors: Sender<RuntimeError>,
    events_tx: Sender<Event, Priority>,
    events: Receiver<Event, Priority>
) -> Result<(), CriticalError>
Expand description

The main worker of a Watchexec process.

This is the main loop of the process. It receives events from the event channel, filters them, debounces them, obtains the desired outcome of an actioned event, calls the appropriate handlers and schedules processes as needed.