// creating and using a fragile object in the same thread works let val = Sticky::new(true);
println!("debug print in same thread: {:?}", &val);
println!("try_get in same thread: {:?}", val.try_get(tok));
// once send to another thread it stops working
thread::spawn(move || {
fragile::stack_token!(tok);
println!("debug print in other thread: {:?}", &val);
println!("try_get in other thread: {:?}", val.try_get(tok));
})
.join()
.unwrap();
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.