The DataLoader implementation uses multiprocessing (specified by num_workers) to load the next batches in the background, while the training is executed, so the functionality should be similar.
However, if you have other suggestions, please add them to this feature request.