MCPcopy Create free account
hub / github.com/NthTensor/Forte / add_reference

Method add_reference

src/scope.rs:302–304  ·  view source on GitHub ↗

Adds an additional reference to the scope's reference counter. Every call to this should have a matching call to `Scope::remove_reference`, or the scope will block forever on completion.

(&self)

Source from the content-addressed store, hash-verified

300 // dropped; each handle is dropped inside `op` when a job runs,
301 // when this function's own handle goes out of scope, or leaks
302 // along with an unexecuted `JobRef`.
303 //
304 // The capture `scope`, and any `'scope` data borrowed by `f`,
305 // are kept alive by the scope's lifetime extension logic: we
306 // incremented the scope's counter once per job on the line
307 // marked with (*), and the scope will not complete (extending

Callers 1

newMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected