Class ThreadInterrupt

java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.async.ThreadInterrupt

@BoxBIF public class ThreadInterrupt extends BIF
  • Constructor Details

    • ThreadInterrupt

      public ThreadInterrupt()
      Constructor
  • Method Details

    • _invoke

      public Thread _invoke(IBoxContext context, ArgumentsScope arguments)
      Interrupt the specific thread by name or all threads managed by the thread manager.

      Example:

       ThreadInterrupt( "myThread" );
       

      This will interrupt the thread with the name "myThread".

      Example:

      
       ThreadInterrupt();
       

      This will interrupt all threads managed by the thread manager.

      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope for the BIF.
      Returns:
      The result of the invocation
      Throws:
      BoxRuntimeException - If the thread is not found.