mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[GH-ISSUE #236] Futures are not Send #80
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kebabtent on GitHub (Aug 6, 2021).
Original GitHub issue: https://github.com/ramsayleung/rspotify/issues/236
Originally assigned to: @marioortizmanero on GitHub.
I am using the latest commit in the master branch. The futures produced by the client are not
Send, meaning the client cannot be used inside a spawned task. Is there any way around it or are there plans to resolve it?Minimal example:
@marioortizmanero commented on GitHub (Aug 7, 2021):
Hmm. The futures are
Sendifureqis being used, but not forreqwest. I'll investigate more, but it doesn't seem to beasync_trait's fault.@marioortizmanero commented on GitHub (Aug 7, 2021):
Ok, this seems to be a side effect of using
#[async_trait(?Send)]for theBaseClienttrait. I used it at the beginning so that the function signatures would be simpler but it seems we do needSend.@marioortizmanero commented on GitHub (Aug 7, 2021):
This is fixed by #237