Skip to content

DirectThreadBridge

final class DirectThreadBridge
Implements: IThreadBridge
Package: dev.joid.lib.bridge.thread · Module: core · Source: DirectThreadBridge.java

The thread bridge that JOID holds before any backend, for which every thread is the render thread.

It runs every task at once, on the calling thread. A backend whose createThreadBridge() returns null keeps it.

ReturnsSignatureSummary
DirectThreadBridge()Creates the thread bridge.

ReturnsSignatureSummary
booleanisRenderThread()Returns true on every thread.
voidexecute(Runnable runnable)Runs the task at once, on the calling thread.

DirectThreadBridge()

Creates the thread bridge.

boolean isRenderThread()

Returns true on every thread.

void execute(Runnable runnable)

Runs the task at once, on the calling thread.


fluent returns the instance, typed for chaining · factory creates an instance · signal also accepts a value that follows signals, as a signal, an expression or a lambda (When does JOID compute this value again?) · hook called by JOID, override it · abstract you implement it · default interface method with a body · static called on the class · protected visible to subclasses

Report a problem with this page