flush docs
[mdref/mdref-http] / http / Client / Curl / User / init.md
diff --git a/http/Client/Curl/User/init.md b/http/Client/Curl/User/init.md
new file mode 100644 (file)
index 0000000..45afb55
--- /dev/null
@@ -0,0 +1,13 @@
+# void http\Client\Curl\User::init(callable $run)
+
+Initialize the event loop.
+
+
+## Params:
+
+* callable $run as function(http\Client $c, resource $s = null, int $action = http\Client\Curl\User::POLL_NONE) : int
+  Internal callback returning the number of unfinished requests pending.
+
+
+> ***NOTE***:
+> The callback should be run when a timeout occurs or a watched socket needs action.