asynctools
asynctools copied to clipboard
Various asynchronous tools for Nim language
Hi, I'm trying to write an app that could start a subprocess, and react to its stdout or stderr, depending on what shows up. I was given some [initial advice](https://forum.nim-lang.org/t/5920)...
This chain of events leads to a crash: 1. Async process `p1` started. 2. Async process `p2` started. 3. Async process `p1` finishes, and the crash happens here. Small example:...
I am working on a long running process that will start another process using asyncproc. After a couple of days it crashes stating that too many file handles are open....
For some reason DNS needed uint16 not int16... Also added a read() and write() methods that deal with just strings.
i get the following error when running the asyncipc example ``` example.nim(12) example asyncipc.nim(238) open oserr.nim(110) raiseOSError Error: unhandled exception: The parameter is incorrect. [OSError] Error: execution of an external...
```nim import asynctools/asyncipc let ipc = createIpc("blablabla") let writeHandle = open("blablabla", sideWriter) ``` ``` test.nim(3) test asyncipc.nim(476) open oserr.nim(110) raiseOSError Error: unhandled exception: Device not configured [OSError] ```
I've tried both ``terminate`` and ``kill``, in both cases the process continues running (even after my program is terminated :/). ``waitForExit`` also has some strange behaviour. I'm running the Nim...
FYI, nim v2 broke `createPipe` bug: https://github.com/nim-lang/Nim/issues/23118 repro ```nim import os, asyncdispatch, winlean # import asynctools/asyncproc # # proc main()= # # let cmd = "nim -v" # let p...
This fixes a "file not found" error when creating a pipe under Windows.
Is it possible to add a function that opens stdin and stdout asynchronously on windows ? Some possible ways are mentioned in this [article](https://tim.mcnamara.nz/post/176613307022/iocp-and-stdio). At least langserver and nimlsp need...