Skip to content

Deprecate Clock.asTimeSource #450

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 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

@dkhalanskyjb dkhalanskyjb requested a review from ilya-g October 18, 2024 10:28
@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 requested a review from ilya-g October 30, 2024 10:58
@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