&& threadReference.compareAndSet(null,
currentThread)) {
currentThread.setCurrentReactor(reactor);
while (true) {
try {
reactor.run();
} catch (final MigrationException me) {
final boolean hasWork = reactor
.hasWork();
threadReference.set(null);
if (reactor.isIdler() || hasWork