Pitch: clock.sleep(for:)

We should make sure that we talk in the documentation about why this kind of method should only be used as a convenience API and why the primary API should traffic in absolute clock values. But with that said, I absolutely agree that it's pretty much always going to be useful to have this kind of convenience alongside that primary API, and so this proposal seems like a nice addition.

7 Likes

I just updated the proposal and PR to mention this. I'm not sure of the exact tone y'all like to use for docs, but I'm open to updating it to whatever people are comfortable with.

3 Likes