initialize method

void initialize()
inherited

A public interface for object initialization.

Sets the state to Active, calls propose, and if it throws an Object, calls deactivate with the thrown object as an argument.

Implementation

@pragma("vm:notify-debugger-on-exception")
void initialize() {
  setActive();
  try {
    propose();
  } catch (thrown) {
    try {
      deactivate(thrown);
    } catch (nested, stack) {
      log.severe("Actor.initialize@deactivate", nested, stack);
    }
    rethrow;
  }
}