mirror of
https://github.com/corda/corda.git
synced 2025-06-12 04:08:26 +00:00
node: add missing @Suspendable
This commit is contained in:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user