Skip to main content

Module parallel

Module parallel 

Source
Expand description

Parallel page navigator โ€” N OS-thread worker pool.

Page (and its embedded V8 isolate) is !Send. This module spawns N dedicated OS threads, each with its own tokio current-thread runtime and its own Page instances. Jobs are dispatched from the caller over std::sync::mpsc channels. Results come back over tokio::sync::oneshot so the caller can .await them naturally.

Round-robin scheduling โ€” caller-visible API is just pager.navigate(url, profile).await.

Structsยง

NavigateResult
Result of a single navigation.
ParallelPager
N-worker parallel navigation pool. Each worker thread owns its own tokio runtime + its own Page instances.