package arez.doc.examples.actions;

import arez.ActionFlags;
import arez.Arez;
import arez.Flags;

public class ActionExample4
{
  public static void main( String[] args )
    throws Throwable
  {
    final int result = Arez.context().action( "MyAction", () -> {
      // Interact with arez observable state (or computable values) here
      //DOC ELIDE START
      int value = 0;
      //DOC ELIDE END
      return value;
    }, ActionFlags.READ_ONLY );
  }
}

@@ -75,27 +75,8 @@
 rez;
-%0Aimport arez.Flags;
 %0A%0Apu

Optimize imports