MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / detach

Method detach

crates/runtime/src/sim/executor/task.rs:35–38  ·  view source on GitHub ↗

Drop the join handle without cancelling the task.

(self)

Source from the content-addressed store, hash-verified

33
34 /// Drop the join handle without cancelling the task.
35 pub fn detach(self) {
36 // async_task::Task::detach makes Drop a no-op — the future keeps running.
37 self.task.detach();
38 }
39
40 /// Poll the underlying async_task::Task for its output.
41 pub(crate) fn poll_join(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Result<T, JoinError>> {

Callers 1

dropMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected