aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2022-04-27 04:45:23 +0200
committerDario Nieuwenhuis <[email protected]>2022-04-27 04:56:41 +0200
commit1599009a4f5fe1a0f9596b7b27bfd9fd84366377 (patch)
treeacd5a0bf15ece515c576673cfcfd8a81bd8d91f9 /docs
parent6f6c16f44924de4d71d0e5e3acc0908f2dd474e6 (diff)
executor: "send-spawn is OK if the args are Send" only holds for async fn futures.
The normal `spawn()` methods can be called directly by the user, with arbitrary hand-implemented futures. We can't enforce they're only called with `async fn` futures. Therefore, make these require `F: Send`, and add a "private" one only for use in the macro, which can enforce it.
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions