Skip to main content

Timeline for Runnable with a parameter?

Current License: CC BY-SA 4.0

3 events
when toggle format what by license comment
Feb 8 at 18:49 comment added TalkLittle To support Android API 23 and earlier, there is a compat version in androidx.core: androidx.core.util.Consumer
Feb 4, 2022 at 10:40 comment added Lampard If still using Runnable with lambda in Java 8, we can do as below: void doSomething(String param) { CompletableFuture.runAsync(() -> howToDo(param));} private void howToDo(String param) { System.out.println(param);}
Jan 9, 2020 at 9:21 history answered Epaga CC BY-SA 4.0