public static < T > Runnable runnable ( Supplier < T > supplier ) { dbc . precondition ( supplier != null , "cannot adapt a null supplier" ) ; return supplier :: get ; }
Adapts a supplier to a runnable .