Skip to content

end() should take an autoclosure instant, not direct instant #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 13, 2023

Conversation

ktoso
Copy link
Member

@ktoso ktoso commented Apr 13, 2023

Motivation:

we want to avoid querying time if we don't have to

Modifications:

end() functions now take autoclosure () -> Instant allowing us to not query time unless we have to (e.g. are "recording")

Review followup from https://github.com/apple/swift-distributed-tracing/pull/120/files#r1165288201

**Motivation:**

we want to avoid querying time if we don't have to

**Modifications:**

end() functions now take autoclosure () -> Instant allowing us to not
query time unless we have to (e.g. are "recording")
@ktoso ktoso merged commit 83a37b4 into main Apr 13, 2023
@ktoso ktoso deleted the wip-end-instant branch April 13, 2023 12:50
@ktoso ktoso added this to the 1.0.0-beta.2 milestone Apr 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants