Package groovy.transform
Annotation Interface ActiveMethod
Marks a method within an
ActiveObject class for
actor-backed execution.
When blocking = true (the default), the caller blocks
until the actor processes the method and returns the result.
When blocking = false, the method returns an
Awaitable immediately.
- Since:
- 6.0.0
- See Also:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanIftrue(default), the caller blocks until the method completes.
-
Element Details
-
blocking
boolean blockingIftrue(default), the caller blocks until the method completes. Iffalse, anAwaitableis returned.- Default:
- true
-