Skip to content

Does it represent different threads if call StreamSink API multiple times? #597

Answered by fzyzcjy
dbsxdbsx asked this question in Q&A
Discussion options

You must be logged in to vote

does it mean that there are 2 independent threads running backstage?

If you are using default executor I guess it is a thread pool. So if that loop does not terminate it does occupy one thread per function call.

But since you are using async I am not sure.

Maybe make a simple experiment: println! current thread name inside that loop etc.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dbsxdbsx
Comment options

@fzyzcjy
Comment options

Answer selected by dbsxdbsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants