Skip to content
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

Deprecate Clock.asTimeSource #450

Merged
merged 3 commits into from
Nov 25, 2024
Merged

Deprecate Clock.asTimeSource #450

merged 3 commits into from
Nov 25, 2024

Conversation

dkhalanskyjb
Copy link
Collaborator

Fixes #372

@ExperimentalTime
@Deprecated("This function is deprecated because Clock.System.asTimeSource " +
"can be confused with TimeSource.Monotonic, which are very different. " +
"See https://github.com/Kotlin/kotlinx-datetime/issues/372", level = DeprecationLevel.ERROR)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to keep ExperimentalTime and start with a deprecation warning.

@dkhalanskyjb dkhalanskyjb merged commit 1123e14 into master Nov 25, 2024
1 check passed
@dkhalanskyjb dkhalanskyjb deleted the deprecate-asTimeSource branch November 25, 2024 13:43
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.

Consider removing Clock.asTimeSource
2 participants