mirror of
https://github.com/corda/corda.git
synced 2024-12-24 15:16:45 +00:00
Merged in fix-clockutils-suspendable (pull request #150)
node: add missing @Suspendable
This commit is contained in:
commit
07153578f0
@ -118,7 +118,7 @@ fun Clock.awaitWithDeadline(deadline: Instant, future: Future<*> = SettableFutur
|
|||||||
|
|
||||||
var nanos = 0L
|
var nanos = 0L
|
||||||
do {
|
do {
|
||||||
doInterruptibly(SuspendableRunnable {
|
doInterruptibly(SuspendableRunnable @Suspendable {
|
||||||
nanos = Duration.between(this.instant(), deadline).toNanos()
|
nanos = Duration.between(this.instant(), deadline).toNanos()
|
||||||
if (nanos > 0) {
|
if (nanos > 0) {
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user