Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Mistakes and omissions regarding awaitables #101

Open
ericlippert opened this issue Aug 25, 2017 · 0 comments
Open

Mistakes and omissions regarding awaitables #101

ericlippert opened this issue Aug 25, 2017 · 0 comments

Comments

@ericlippert
Copy link
Contributor

Chapter 10 says

If async is present, return-type must be a type that implements Awaitable.

That is incorrect; the type must be exactly Awaitable or Awaitable for some T. An interface which extends Awaitable or a class which implements Awaitable is not legal here.

Chapter 16 does not mention at all that an async method must have a particular return type. (Though this is subtly implied by the note which says that an abstract non-async method may be awaitable.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant