Immediately run a Runnable with this context as the #current context. @param r Runnable to run.
(Runnable r)
| 531 | * @param r {@link Runnable} to run. |
| 532 | */ |
| 533 | public void run(Runnable r) { |
| 534 | Context previous = attach(); |
| 535 | try { |
| 536 | r.run(); |
| 537 | } finally { |
| 538 | detach(previous); |
| 539 | } |
| 540 | } |
| 541 | |
| 542 | /** |
| 543 | * Immediately call a {@link Callable} with this context as the {@link #current} context. |