Timeline for Runnable with a parameter?
Current License: CC BY-SA 3.0
26 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 26 at 18:56 | answer | added | Bernard Agbemadon | timeline score: 0 | |
Apr 5, 2023 at 11:50 | answer | added | dot_cr2 | timeline score: -1 | |
Feb 7, 2023 at 19:22 | comment | added | Alex78191 | @experimentunit1998X stackoverflow.com/a/59660705/4854931 | |
Feb 7, 2023 at 7:51 | comment | added | pebble unit | @Alex78191, can you further elaborate what you mean by use Consumer<T>? | |
Jan 5, 2023 at 16:45 | comment | added | musterjunk | I usually create a class that implements run() and pass what ever data I need into the constructor or accesser/setter. | |
Nov 14, 2021 at 13:39 | answer | added | Carlos López Marí | timeline score: 2 | |
Aug 4, 2021 at 16:11 | answer | added | Abdel Wadoud | timeline score: 1 | |
Jan 9, 2020 at 9:21 | answer | added | Epaga | timeline score: 26 | |
Jan 9, 2020 at 9:15 | history | reopened |
Epaga Horcrux7 oliholz |
||
Jan 9, 2020 at 9:15 | review | Reopen votes | |||
Jan 9, 2020 at 9:20 | |||||
Jan 9, 2020 at 8:56 | comment | added | Epaga |
This is NOT a duplicate to "How can I pass a parameter to a Java thread". And the modern answer is, like @Alex78191 says: use Consumer<T>
|
|
May 8, 2019 at 13:07 | comment | added | Francesco Galgani | I've read the various answers to this question. It seems me strange that nobody told that you can add to your project the Runnables that you need (with one, two, three or more args) simply adding an appropriate interface. I created a commented gist here for who is interested: gist.github.com/jsfan3/3a66e711fd0fd233c5e4c467184adb7a | |
Feb 25, 2019 at 18:49 | comment | added | Alex78191 |
Now you can use Consumer<T> .
|
|
Sep 8, 2015 at 11:55 | review | Reopen votes | |||
Sep 8, 2015 at 12:24 | |||||
Mar 18, 2015 at 17:22 | history | closed |
Ciro Santilli OurBigBook.com kenorb Jackson Austin Mullins ali_m |
Duplicate of How can I pass a parameter to a Java Thread? | |
Mar 18, 2015 at 11:46 | review | Close votes | |||
Mar 18, 2015 at 17:22 | |||||
Mar 18, 2015 at 11:27 | history | edited | Ciro Santilli OurBigBook.com | CC BY-SA 3.0 |
deleted 24 characters in body
|
Jan 30, 2014 at 15:42 | answer | added | ubiquibacon | timeline score: 12 | |
May 23, 2013 at 17:49 | answer | added | Tommi Rouvali | timeline score: 35 | |
Apr 19, 2012 at 23:18 | answer | added | HaoQi Li | timeline score: 52 | |
May 2, 2011 at 4:30 | history | edited | Stephen C | CC BY-SA 3.0 |
edited title
|
May 2, 2011 at 4:09 | vote | accept | uTubeFan | ||
May 2, 2011 at 3:20 | answer | added | atlantis | timeline score: 5 | |
May 2, 2011 at 3:18 | answer | added | rlibby | timeline score: 10 | |
May 2, 2011 at 3:17 | answer | added | corsiKa | timeline score: 261 | |
May 2, 2011 at 3:09 | history | asked | uTubeFan | CC BY-SA 3.0 |