registerDoFuture function

Use the Foreach %dopar% Adapter with Futures