Carl Fredrik Samson

Results 89 comments of Carl Fredrik Samson

> while our Test isn't Unpin, I think it has no connection with std::mem::swap, and no move occurs here, right? You are correct. No move occurs here. The error is...

> What does the word regular here mean? Can I regard it as simple? By regular I mean not an `AtomicUsize` just the normal `usize`. I guess, if you need...

Yeah, the right thing would be to either return None and let the caller decide what to do when there are no available threads, or implement some logic that queues...

> It means that security is what have been ignored in the previous chapters yes >So if the user registers a lot of events that would not happend or take...

Here is a more precise sentence: _If someone were to build a public facing server based on our the code in our example..._

>Lastly we clean up after ourselves by joining all our threads ... Yeah, well I think you're right "after ourselves" doesn't really add any meaningful here, it's more of a...

No, I meant that registering an interest to wait for a `Ready` event i an event queue does not have any positive effect since a lot of the operations will...

No, not really :) That word is a mistake from my part. I've removed it now. Thanks for catching.

> the last comma I think should be replaced by which or that? Yeah, you're right. >so the callbacks of timers which have already timed out are immediately schedule to...

It means that it's better for me to write one long function with all the logic chronologically since it's easier for me to explain in a book format, but I...