package org.realityforge.arez;

import javax.annotation.Nonnull;

/**
 * Interface implemented by code to react to changes for an observer.
 */
@FunctionalInterface
public interface Reaction
{
  /**
   * React to changes, or throw an exception if unable to do so.
   *
   * @param observer the observer of changes.
   * @throws Exception if there is an error reacting to changes.
   */
  void react( @Nonnull Observer observer )
    throws Exception;
}

package org.realityforge.arez;

import javax.annotation.Nonnull;

/**
 * Interface implemented by code to react to changes for an observer.
 */
@FunctionalInterface
interface Reaction
{
  /**
   * React to changes, or throw an exception if unable to do so.
   *
   * @param observer the observer of changes.
   * @throws Exception if there is an error reacting to changes.
   */
  void react( @Nonnull Observer observer )
    throws Exception;
}

Remove Reaction from public API