INNER CODE UNIT · Java

currentScopeId

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

	public synchronized String currentScopeId() {
		if( scopeStack.isEmpty() && parent != null ) {
			return parent.currentScopeId();
		}

		return scopeStack.peek().id();
	}

	/**
	 * Registers a future to be cancelled when this thread is killed.
	 *
	 * @param f the future to cancel
	 */
	public synchronized void cancelIfKilled( Future< ? > f ) {
		cleanFuturesToKill();
		if( isKilled() ) {
			f.cancel( true );
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…