protty

Results 50 comments of protty

@tauoverpi To better understand, would this make things like `File`, `Stream`, `StreamServer` type generic or would their methods take in the IO type? Other food for thought: should this pattern...

@blasrodri The usage of `get_mut` on the UnsafeCell there looks like an issue. It becomes more vivid where an atomic load, which implies shared references, is being done on a...

FWIW, It's possible to fix this soundness issue while still using intrusive Futures. You just need to store the intrusive Node outside the Future that's being polled, then have said...

Expect with probability seems to affect `switch` cases but it's unclear how it does so practically compared to `if`.

> Is wrapping tasks into our own structs the way to go to use your thread pool? Yea, this is the core idea behind intrusive data structures. Queueing was written...

Sounds like a nice proposal, with moving execution into await instead of async for non-suspend functions being quite the change. Was left with a few questions after reading it over:...

For the last part, as I understand it now, doing `var frame = async someAsyncFn()` runs someAsyncFn() up until its suspend point if any. If the result location is already...

> it would still setup the frame and run until first suspend, just like status quo Ah ok, think that was where my misunderstanding was. My last point of confusion...

@frmdstryr Nice idea. Would it make sense to extend this to other frame functionality? `suspend` probably wouldn't be feasible to be a frame method since it needs to support block...

@EleanorNB All control flow isn't currently keywords as function calls themselves are a form of control flow and can have control flow inside them as well. If I understand correctly,...