@FunctionalInterface public interface CheckedRunnable
| 限定符和类型 | 方法和说明 |
|---|---|
void |
run()
Run the task.
|
default CheckedSupplier<Void> |
toSupplier()
Convert the runnable to a supplier.
|
void run() throws Throwable
Throwable - the exception that may be thrown when running the taskdefault CheckedSupplier<Void> toSupplier()
Copyright © 2024. All rights reserved.