Interface Invocable

    • Method Detail

      • isNonBlockingInvocation

        static boolean isNonBlockingInvocation()
        Test if the current thread has been tagged as non blocking
        Returns:
        True if the task the current thread is running has indicated that it will not block.
      • invokeNonBlocking

        static void invokeNonBlocking​(Runnable task)
        Invoke a task with the calling thread, tagged to indicate that it will not block.
        Parameters:
        task - The task to invoke.