Skip to content

Document the pitfall of using makeCurrent(span) without returning an output #92

@duncanpo

Description

@duncanpo

makeCurrent(span) returns an output that is a scope object. When the scope object is destroyed, span is no longer current.
A common pitfall is to call makeCurrent without returning an output, which results in the scope getting immediately destroyed and makeCurrent seemingly has no effect.

The scope object output is documented in the makeCurrent help but this pitfall needs to be emphasized more to help users avoid this mistake.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions