SubjectRunnable.this

Creates a new {@code SubjectRunnable} that, when executed, will execute the target {@code delegate}, but guarantees that it will run associated with the specified {@code Subject}.

@param subject the Subject to associate with the delegate's execution. @param delegate the runnable to run.

  1. this(Subject subject, Runnable dg)
    class SubjectRunnable
    this
    (,
    Runnable dg
    )
  2. this(ThreadState threadState, Runnable dg)

Meta