GoLang SyncEvent::fire

request it (330)
GoLang replacement for PHP's SyncEvent::fire [edit | history]

Do you know a GoLang replacement for PHP's SyncEvent::fire? Write it!

PHP SyncEvent::fire

PHP original manual for SyncEvent::fire [ show | php.net ]


(PECL sync >= 1.0.0)

SyncEvent::fireFires/sets the event


public bool SyncEvent::fire ( void )

Fires/sets a SyncEvent object. Lets multiple threads through that are waiting if the event object was created with a manual value of TRUE.


This function has no parameters.

Return Values

A boolean of TRUE if the event was fired, FALSE otherwise.


Example #1 SyncEvent::fire() example

// In a web application:
$event = new SyncEvent("GetAppReport");

// In a cron job:
$event = new SyncEvent("GetAppReport");

See Also