Package co.paralleluniverse.fibers
Annotation Type Suspendable
-
@Documented @Retention(RUNTIME) @Target({METHOD,TYPE}) public @interface Suspendable
Marks a method as suspendable.
Marking a method as suspendable by declaringthrows SuspendExecution
is the preferable way, but using this annotation might become necessary if the method implements or overrides a method which is not declared to throwSuspendExecution
. In that case marking the method in its declaring class/interface as potentially suspendable is necessary, and can be done in an external text file. Please refer to the user manual to see how this can be done automatically.