I'm trying to run a code that would execute a function and just continue with the loop without waiting for the function executed to finish. something like this:
public static function refreshData(){
foreach (glob(__DIR__.'/tabs/*.pr') as $file) {
$path_parts = pathinfo($file);
$name = $path_parts['filename'];
$new = Readers::reset($name);
$new->processData();
}
I don't need the processData function to block my code. I just want to execute it and continue with the rest of the code, which in that cause is to continue looping.