Skip to content

Replace our own TimeAmount with Swift.Duration #955

@ktoso

Description

@ktoso

This is a must-fix; We no longer need to use our own time types.

The reason we had them to begin with was to not "leak" NIO's time types in our APIs. We no longer need to do so, or rather, should stop doing so as soon as possible.


Use this everywhere instead: https://developer.apple.com/documentation/swift/duration

TimeAmount -> Swift.Duration

The purpose of our TimeAmount was to not "leak" NIO's TimeAmount, and we should keep true to that.

We should remove the time amount and use Duration everywhere.

Deadline -> ContinuousClock.Instant

I think for our purposes the https://developer.apple.com/documentation/swift/continuousclock will be good enough.

Metadata

Metadata

Assignees

Labels

2 - pick nextIf looking for work, pick this ticket :-)3 - in progressTicket is being worked onkind/bugFeature doesn't work as expected.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions