Skip to content

How to get id of fiber/thread? #1588

Closed Answered by sogaiu
lost22git asked this question in Q&A
Apr 15, 2025 · 1 comments · 5 replies
Discussion options

You must be logged in to vote

I don't know.

I may be mistaken, but the task-id in this setting is just an arbitrary keyword that a programmer gets to decide on in order to distinguish content that arrives on the supervisor channel [1]. IIUC, there isn't any intrinsic meaning apart from that. It's possible then that the default behavior is for the task-id to be nil for cases where a programmer isn't concerned with making certain distinctions.

Also, I'm not sure what you are trying to accomplish. May be you could elaborate a bit more on the background for this question?


[1] For example, since the supervisor channel is a parameter to ev/thread / ev/go, it's conceivable that multiple threads or fibers share a common supe…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@lost22git
Comment options

@sogaiu
Comment options

@lost22git
Comment options

@sogaiu
Comment options

Answer selected by lost22git
@sogaiu
Comment options

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