45afb55291f93ba641f912434b3b69e4e5d73acc
[mdref/mdref-http] / http / Client / Curl / User / init.md
1 # void http\Client\Curl\User::init(callable $run)
2
3 Initialize the event loop.
4
5
6 ## Params:
7
8 * callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int
9 Internal callback returning the number of unfinished requests pending.
10
11
12 > ***NOTE***:
13 > The callback should be run when a timeout occurs or a watched socket needs action.