5 Punkte von xguru 2021-07-04 | Noch keine Kommentare. | Auf WhatsApp teilen
  • Ein leichtgewichtiges Paket, mit dem sich PHP-Code parallel ausführen lässt

→ funktioniert intern durch Forking des Haupt-PHP-Prozesses

  • Nur in der CLI nutzbar

  • Verwendet PHP8 & die Erweiterung pcntl

$results = Fork::new()

->run(

fn () => (new Api)->fetchData(userId: 1),

fn () => (new Api)->fetchData(userId: 2),

fn () => (new Api)->fetchData(userId: 3),

);

Noch keine Kommentare.

Noch keine Kommentare.