com_message_pump

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

com_message_pumpProcess COM messages, sleeping for up to timeoutms milliseconds

Beschreibung

com_message_pump(int $timeout_milliseconds = 0): bool

This function will sleep for up to timeout_milliseconds milliseconds, or until a message arrives in the queue.

The purpose of this function is to route COM calls between apartments and handle various synchronization issues. This allows your script to wait efficiently for events to be triggered, while still handling other events or running other code in the background. You should use it in a loop, as demonstrated by the example in the com_event_sink() function, until you are finished using event bound COM objects.

Parameter-Liste

timeout_milliseconds

The timeout, in milliseconds.

If you do not specify a value for timeout_milliseconds, then 0 will be assumed. A 0 value means that no waiting will be performed; if there are messages pending they will be dispatched as before; if there are no messages pending, the function will return false immediately without sleeping.

Rückgabewerte

If a message or messages arrives before the timeout, they will be dispatched, and the function will return true. If the timeout occurs and no messages were processed, the return value will be false.

Hier Kannst Du einen Kommentar verfassen


Bitte gib mindestens 10 Zeichen ein.
Wird geladen... Bitte warte.
* Pflichtangabe
Es sind noch keine Kommentare vorhanden.

Was genau bedeutet "Vibe Coding"? Ein tiefgehender Blick für Entwickler

In der Welt der Softwareentwicklung gibt es unzählige Wege, wie man an ein Projekt herangeht. Manche schwören auf strikte Planung, andere auf bewährte Algorithmen und wieder andere lassen sich von etwas ganz anderem leiten: ihrem Gefühl. ...

admin

Autor : admin
Kategorie: Software & Web-Development

PHP cURL-Tutorial: Verwendung von cURL zum Durchführen von HTTP-Anfragen

cURL ist eine leistungsstarke PHP-Erweiterung, die es Ihnen ermöglicht, mit verschiedenen Servern über verschiedene Protokolle wie HTTP, HTTPS, FTP und mehr zu kommunizieren. ...

TheMax

Autor : TheMax
Kategorie: PHP-Tutorials

Midjourney Tutorial - Anleitung für Anfänger

Über Midjourney, dem Tool zur Erstellung digitaler Bilder mithilfe von künstlicher Intelligenz, gibt es ein informatives Video mit dem Titel "Midjourney Tutorial auf Deutsch - Anleitung für Anfänger" ...

Mike94

Autor : Mike94
Kategorie: KI Tutorials

Tutorial veröffentlichen

Tutorial veröffentlichen

Teile Dein Wissen mit anderen Entwicklern weltweit

Du bist Profi in deinem Bereich und möchtest dein Wissen teilen, dann melde dich jetzt an und teile es mit unserer PHP-Community

mehr erfahren

Tutorial veröffentlichen

Provider stellt auf envelope-from um. Was muss ich bei meinem Code ändern?

Hallo Mein Web-Provider stellt bei seinen Mailkonten demnächst auf envelope-from um. Problem: Die Formulare auf meiner Webseite werden per Mail a ...

Geschrieben von PPV am 13.01.2026 18:05:52
Forum: PHP Developer Forum
übergabeproblem

Quote from StarkesWeb Code: $Market= $_POST["value"]; I think that line is wrong. It should be... Code: $Market = $_POST["Market"]; be called. ...

Geschrieben von JohnSnow am 13.01.2026 10:52:08
Forum: PHP Developer Forum
Wo man günstige lizenzierte Software bekommt

Ja, die Schlüssel sind sowohl für eine Neuinstallation als auch für die Aktivierung eines bereits installierten Systems geeignet. Wichtig ist, ...

Geschrieben von einermeiner am 13.01.2026 08:56:46
Forum: Ankündigungen
Wo man günstige lizenzierte Software bekommt

Ein interessantes Thema mit preiswerter Software. Sag mal, sind die Schlüssel für eine Neuinstallation geeignet oder nur für die Aktivierung ei ...

Geschrieben von daberty am 13.01.2026 08:45:51
Forum: Ankündigungen