Launch a new thread and call the specified function from that new thread. This is a very simple way to do a thread without needing to get into classes, runnables, etc. Note that the function being called must be public. Inside the PDE, 'public' is automatically added, but when used without the
(final String name)
| 3899 | * @see PApplet#noLoop() |
| 3900 | */ |
| 3901 | public void thread(final String name) { |
| 3902 | Thread later = new Thread() { |
| 3903 | @Override |
| 3904 | public void run() { |
| 3905 | method(name); |
| 3906 | } |
| 3907 | }; |
| 3908 | later.start(); |
| 3909 | } |
| 3910 | |
| 3911 | |
| 3912 |
no test coverage detected