| Constructor and Description |
|---|
SynchronizedClosure() |
SynchronizedClosure(int n) |
| Modifier and Type | Method and Description |
|---|---|
Status |
await()
Wait for closure run
|
Status |
getStatus()
Get last ran status
|
void |
reset()
Reset the closure
|
void |
run(Status status)
Called when task is done.
|
public SynchronizedClosure()
public SynchronizedClosure(int n)
public Status getStatus()
public void run(Status status)
Closurepublic Status await() throws InterruptedException
InterruptedException - if the current thread is interrupted
while waitingpublic void reset()
Copyright © 2024. All rights reserved.