tokio_schedule icon indicating copy to clipboard operation
tokio_schedule copied to clipboard

Why the perform fn use the Box::pin, how it works?

Open stickmy opened this issue 1 year ago • 0 comments

Hello, i am learning rust recently, and find this library, after reading the source code, i am so confused why the perform fn use the Box::pin api, imo, the future returned by async block is !Unpin, why it be pined again? If removed the Box::pin, what'll happen?

stickmy avatar Dec 12 '24 16:12 stickmy