INNER CODE UNIT · Java

kill

jolie/jolie · jolie/src/main/java/jolie/ExecutionThread.java:210

	public synchronized void kill( FaultException fault ) {
		killerFault = fault;

		while( !futureToCancel.isEmpty() ) {
			final WeakReference< Future< ? > > ref = futureToCancel.poll();
			if( ref.get() != null ) {
				ref.get().cancel( true );
			}
		}

		if( canBeInterrupted ) {
			taskFuture.cancel( canBeInterrupted );
		}
	}

	/**
	 * Returns the fault which killed this thread, if any. null otherwise.
	 *

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…