Expand description
The document hand-off’s parked ask: one document handed to the reader, held until their answer.
Mirrors crate::browser’s relay shape rather than inventing a second
parked one: Workspace::hand_off_document registers the call and
awaits its ending; a client answers not now to decline, and the
viewer’s approve or feedback - after the reader’s comments were
filed - releases it with the decision and the note the reader gave.
Nothing parks without a client attached to draw the ask.
Re-exports§
use forge_primitives::document::DocumentHandOffAsk;🔒use forge_primitives::document::DocumentHandOffEnding;🔒use tokio::sync::oneshot;🔒use crate::SessionSlot;🔒use crate::protocol::SessionUpdate;🔒use crate::workspace::Workspace;🔒
Structs§
- Abandon
OnDrop 🔒 - Releases a parked hand-off as
DocumentHandOffEnding::Abandonedwhen the awaiting call goes away mid-ask - a cancelled turn must not leave the registry holding a sender nothing awaits, or an ask no view can close. - Parked
Document 🔒 - One parked call, under its id: who handed it, the ask as the read surface carries it, and the sender the awaiting tool holds.
Constants§
- NO_
VIEWER_ CLIENT - What a hand-off answers when no client is attached to draw its ask.