Skip to content
Discussion options

You must be logged in to vote

This is a fairly low-level library, so I would't recommend trying to use it unless you know why do you need all the bits.

However:

  1. Yes, all functions that receive rt should be called from within a coroutine. I have plans to change this, but that's how it is for now.

  2. This also kind of depends on the knowledge of threads, where the detach/join terminology is from, but I'm glad you found the docs useful. I'll keep improving them.

  3. You should never just assign a task to _, you are leaking memory that way.

  4. This is a complex topic, the Condition and a Mutex are tools to synchronize over the other variable, ready. See this: https://en.wikipedia.org/wiki/Monitor_(synchronization)#Condition…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lalinsky
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