Deprecate osproc.select(). Refs #90.
This commit is contained in:
parent
2edcd07031
commit
fa3436fb65
1 changed files with 5 additions and 1 deletions
|
|
@ -335,7 +335,8 @@ proc execProcesses*(cmds: openArray[string],
|
||||||
if afterRunEvent != nil: afterRunEvent(i, p)
|
if afterRunEvent != nil: afterRunEvent(i, p)
|
||||||
close(p)
|
close(p)
|
||||||
|
|
||||||
proc select*(readfds: var seq[Process], timeout = 500): int {.benign.}
|
proc select*(readfds: var seq[Process], timeout = 500): int
|
||||||
|
{.benign, deprecated.}
|
||||||
## `select` with a sensible Nim interface. `timeout` is in milliseconds.
|
## `select` with a sensible Nim interface. `timeout` is in milliseconds.
|
||||||
## Specify -1 for no timeout. Returns the number of processes that are
|
## Specify -1 for no timeout. Returns the number of processes that are
|
||||||
## ready to read from. The processes that are ready to be read from are
|
## ready to read from. The processes that are ready to be read from are
|
||||||
|
|
@ -343,6 +344,9 @@ proc select*(readfds: var seq[Process], timeout = 500): int {.benign.}
|
||||||
##
|
##
|
||||||
## **Warning**: This function may give unexpected or completely wrong
|
## **Warning**: This function may give unexpected or completely wrong
|
||||||
## results on Windows.
|
## results on Windows.
|
||||||
|
##
|
||||||
|
## **Deprecated since version 0.17.0**: This procedure isn't cross-platform
|
||||||
|
## and so should not be used in newly written code.
|
||||||
|
|
||||||
when not defined(useNimRtl):
|
when not defined(useNimRtl):
|
||||||
proc execProcess(command: string,
|
proc execProcess(command: string,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue