Requests normal termination of this
Isolate
. Invocation of this method is equivalent to causing the isolate to invoke {@link java.lang.Runtime#exit(int)}. If this method invocation is, in fact, the cause of the isolate's termination, the
status
supplied will be the isolate's termination status.
No exception is thrown if this isolate is already terminated. Even if {@link #isTerminated()} returns false priorto invoking exit
, an invocation of exit
may occur after the isolate exits on its own or is terminated by another isolate. In these cases, the actual exit code reported by the isolate may be different from status
.
If this isolate is not yet started, it will be marked as already terminated. A subsequent invocation to {@link #start()} wouldresult in an IsolateStartupException.
If this isolate is suspended, it will be terminated without being resumed.
@param status Termination status. By convention, a nonzero status code indicates abnormal termination.