[JENKINS-48309] - Prevent TimeoutException in AsyncFutureImpl in the case of spurious wakeups (#240)
[JENKINS-48309] - Prevent TimeoutException in AsyncFutureImpl in the case of spurious wakeups (#240)

* [JENKINS-48309] - Prevent TimeoutException in AsyncFutureImpl in the case of spurious wakeups.

TL;DR: A large part of Jenkins’ get-with-timeout logic is a subject for improper exit before the timeout.

* [JENKINS-48309] - I was too lazy to use nanos in the beginning, address the comment from @stephenc

* [JENKINS-48309] - Use wait with nanos in hope there are Java implementations which really support nano timeouts.

* [JENKINS-48309] - And again, @stephenc prevents a major embarassement due to the stupid typo

jenkinsci/remoting,jenkinsci/remoting