Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
fuel threads - AzaThread port
  • I've been toying with this package but can't quite seem to get it to work, i'm trying to run an async task in a controller, i think this should be able to do it. I created a class that extends thread in the pkgpath

    class Sleep extends \Fuelthreads\Cli\Thread\Thread{
          protected function process()
          {
                sleep(10);
                \Log::debug('done');
          }
    }

    and then in some random controller I tried

    $thread = new Sleep();
    $thread->run();

    but it still runs synchronously in the controller. What am I doing wrong?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion