-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SlackApiScrollableRequest across await #38
Comments
Hey @nhey , seems like it was forgotten to mark as |
Thanks for the report! |
Thanks. I think in some places it could be marked
|
@nhey there is no need to mark it Copy in this case I think (and I don't think it will work if you try). |
The scroller method in trait
SlackApiScrollableRequest
returns aSlackApiResponseScroller
which is notSend
. This means you cannot paginate from inside a thread (or I am doing it wrong). The minimal example from your website, but inside a tokio thread:yields
The program compiles if I mark the return value of the scroller method as
Send
andSync
. I deem that this is safe since all of its members areSend
andSync
, but I am a rust novice.Send
andSync
?The text was updated successfully, but these errors were encountered: