RFR: Slightly simpler way of waiting for a specific time

Alan Bateman alanb at openjdk.java.net
Tue Oct 13 18:06:13 UTC 2020


On Tue, 13 Oct 2020 17:27:08 GMT, kabutz <github.com+332398+kabutz at openjdk.org> wrote:

> Instead of writing the logic for calling System.nanoTime() etc. ourselves, could we perhaps use awaitNanos() instead?

Yes, better to use awaitNanos rather than await here.

-------------

PR: https://git.openjdk.java.net/loom/pull/19


More information about the loom-dev mailing list