Skip to content

Should I use Sender<...> to type send? #1510

Answered by Andarist
RafalFilipek asked this question in Q&A
Discussion options

You must be logged in to vote

Send is just a simple function that takes a single argument - if u need to create a compatible type somewhere where u cant rely in inference then I would suggest using exactly that: a simple function type

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RafalFilipek
Comment options

@Andarist
Comment options

Answer selected by RafalFilipek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants