GoLang event_base_loop

request it (64)
GoLang replacement for PHP's event_base_loop [edit | history]



Do you know a GoLang replacement for PHP's event_base_loop? Write it!

PHP event_base_loop

PHP original manual for event_base_loop [ show | php.net ]

event_base_loop

(PECL libevent >= 0.0.1)

event_base_loopHandle events

Description

int event_base_loop ( resource $event_base [, int $flags = 0 ] )

Starts event loop for the specified event base.

Parameters

event_base

Valid event base resource.

flags

Optional parameter, which can take any combination of EVLOOP_ONCE and EVLOOP_NONBLOCK.

Return Values

event_base_loop() returns 0 on success, -1 on error and 1 if no events were registered.