R4.12: answer the token before paths, one deadline per caller, hand-overs via the main window
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
5bf2056281
commit
78a285d124
8 files changed
+363
-124
No files matched your search
@@ -161,7 +161,8 @@ mod tests {
|
||||
panic!("the first copy did not hold");
|
||||
};
|
||||
let (sender, heard) = std::sync::mpsc::channel();
|
||||
door.serve(move |files| sender.send(files).expect("heard")).expect("served");
|
||||
let sender = std::sync::Mutex::new(sender);
|
||||
door.serve(move |files| sender.lock().expect("a sender").send(files).is_ok()).expect("served");
|
||||
println!("HELD");
|
||||
let files = heard.recv_timeout(std::time::Duration::from_secs(20)).expect("a hand-over");
|
||||
println!("GOT {}", files[0].display());
|
||||
|
||||
Reference in new issue
Block a user