-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Added factory class for InstantSource bean creation #11774
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
base: 4.9.x
Are you sure you want to change the base?
Conversation
InstantSource
Hey @yawkat, I've created a simple draft for this; I have few questions
|
12ab9da
to
8513c01
Compare
The location seems reasonable to me. @graemerocher WDYT I don't think we should expose a full Clock. The server time zone is not something that microservices should touch anyway. |
just FYI: I've searched the code and
... I guess that In addition it's being used in
|
For motivation and rationale see micronaut-projects#11655
The PR looks good and I've implemented something similar in my own project that uses Micronaut. Could you maybe take it out of draft (and I guess now, rebase to 4.10.x as it's new API?). I think when a PR is marked as in draft, the maintainers don't look at it. |
There's also a new Ticker API in netty that it would be cool to integrate with: https://github.com/netty/netty/pull/15026/files#diff-df3131658fad36f38d0be80c7870224d302810296ef4a42b79ffe02113443a8a But since that is nanoTime-based, I'm not sure it's feasible. |
@mikehearn I was/still am waiting for feedback 🤷 In my project I've included |
For motivation and rationale see #11655