pl.clareo.coroutines.user
Annotation Type Coroutine


@Retention(value=CLASS)
@Target(value=METHOD)
public @interface Coroutine

Annotates method as coroutine.

Author:
Marcin Rzeźnicki

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.
 

generator

public abstract boolean generator
If false next is called once before passing CoIterator to caller

Returns:
is this coroutine a generator
Default:
true

threadLocal

public abstract 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. Default is false

Returns:
is this coroutine shared between threads
Default:
false


Copyright © 2010 CLAREO. All Rights Reserved.