public final CompletionStage < Void > runAsync ( Runnable runnable , Executor executor ) { Objects . requireNonNull ( runnable , "runnable must not be null" ) ; return completedStage ( null ) . thenRunAsync ( runnable , executor ) ; }
Returns a new CompletionStage that is asynchronously completed by a task running in the given executor after it runs the given action . Subsequent completion stages will use defaultAsyncExecutor as their default executor .