async-std icon indicating copy to clipboard operation
async-std copied to clipboard

Adds example to async_std::task::spawn

Open tronta opened this issue 5 years ago • 2 comments

As I struggled using the function spawn properly (I didn't get that it can be executed without await :-( ), I'd like to add an other example.

tronta avatar Jul 08 '20 19:07 tronta

Yes, the toplevel description. Would have helped me. In my opinion, more examples are better than less :grinning: What do you think, should be modified? Or do you suggest, this is enough...? Probably one needs to weigh up the maintenance effort.

tronta avatar Jul 10 '20 15:07 tronta

@tronta hah, yay glad that would've helped -- I would prefer we adapt the docs from std::thread for this instead -- putting this behavior into words is probably the right approach here.

yoshuawuyts avatar Jul 13 '20 10:07 yoshuawuyts