What is Nostr?
Daniel Spiewak /
npub1nfj…tprm
2025-02-13 15:46:35
in reply to nevent1q…quyr

Daniel Spiewak on Nostr: nprofile1q…5hl4y As for "blocking", it's referring to the fiber, not the thread. So ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqdhlp9quv7gxr9vspuv7rramapsxaw2phk0zjpxw2uq2t6kvnp7csc5hl4y (nprofile…hl4y) As for "blocking", it's referring to the fiber, not the thread. So if you try to take from an empty queue, what should happen? There are really only three options: an error, a sentinel value (like null or None), or blocking the return until a value is available. In most cases, the last one is the most useful if it can be done efficiently, since this corresponds to a situation where you have many concurrent workers and not enough work, so they just sit and wait for more work units.
Author Public Key
npub1nfjd63p9den5retrjz3yeye3rvhcle5amqfhnvvttraelmpsf2ps2stprm