Skip to content

Is Span Sendable? #2346

Closed Answered by brustolin
StefanCosminR asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, I got it. Your concern is legit, the child will most definitely end up in the wrong transaction. bindToScope overrides any previous value "binded" before.

Right now we don't offer a built in solution for this scenario, you will need to handle transaction references yourself between tasks.
A Sendable wrapper to hold the transaction reference is probably the easiest solution right now.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by StefanCosminR
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants