qri-io / qri

you're invited to a data party!
https://qri.io
GNU General Public License v3.0
1.11k stars 66 forks source link

feat(scope): Scope has profileID. ReplaceParentContext method #1859

Closed dustmop closed 3 years ago

dustmop commented 3 years ago

Always add the profileID to the scope's context. This is used by automation and will soon be used by the event.Bus as well. Allow scope to detach their parent context, so that they can be used for long-running operations that should not be cancelled by their parents.