|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=CLASS) @Target(value=METHOD) public @interface Coroutine
Annotates method as coroutine.
Optional Element Summary | |
---|---|
boolean |
generator
If false next is called once
before passing CoIterator to caller |
boolean |
threadLocal
Marks coroutine frame data as thread local which enables to share CoIterator instance between many threads with each invocation
having its own state. |
public abstract boolean generator
false
next
is called once
before passing CoIterator
to caller
public abstract boolean threadLocal
CoIterator
instance between many threads with each invocation
having its own state. Default is false
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |