Class ThreadBound

java.lang.Object
org.jsignal.rx.ThreadBound

public class ThreadBound extends Object
  • Constructor Details

    • ThreadBound

      public ThreadBound(boolean isSync)
  • Method Details

    • getThreadId

      @Nullable public Long getThreadId()
    • maybeSynchronize

      public void maybeSynchronize(Runnable inner)
    • maybeSynchronize

      public <T> T maybeSynchronize(Supplier<T> inner)
    • isCurrentThread

      public boolean isCurrentThread()