mirror of https://github.com/flaggo/pydu.git
add note to unix_timeout
This commit is contained in:
parent
65d17c20a3
commit
5bce992c4e
|
@ -4,7 +4,7 @@ Miscellanea
|
|||
.. function:: pydu.unix_timeout(seconds)
|
||||
|
||||
This func decorates any func which may be hang for a while. The param ``seconds``
|
||||
should be integer. ``unix_timeout`` can only be used on ``unix-like`` system.
|
||||
should be integer.
|
||||
In `test.py`, you may write like below:
|
||||
|
||||
.. code-block:: python
|
||||
|
@ -18,6 +18,8 @@ Miscellanea
|
|||
|
||||
And run `test.py`, will see ``TimeoutError``.
|
||||
|
||||
.. note:: ``unix_timeout`` can only be used on ``unix-like`` system.
|
||||
|
||||
|
||||
.. function:: pydu.trace(obj)
|
||||
|
||||
|
|
Loading…
Reference in New Issue