For what it's worth, I've been using DispatchQueue.concurrentPerform on my
own projects that run on both Darwin and Linux and it's worked well for
both. I haven't noticed the issue you're describing.
Perhaps you could include a repro case that demonstrates this behavior?
PS: However, my Swift CLI
Of course, Foundation API has no way of distinguishing if the caller is
considered a script or not.
If the API is a bad idea for other kinds of apps then we simply wouldn’t add
it. So, I think this proposed convenience API needs to consider all of the
varied clients of Foundation.
- Tony
> On
Doesn't look like any of us. Anything happen over in Dispatch-land?
:0: error: cannot open file
'/home/buildnode/jenkins/workspace/oss-swift-incremental-RA-linux-ubuntu-16_10/swift-corelibs-libdispatch/private/module.modulemap':
No such file or directory
Jordan
> On Nov 28, 2017, at 11:57, no
> On Nov 28, 2017, at 8:00 AM, Tony Parker wrote:
>
> Why does it imply a run loop rather than one of many multithreading
> possibilities (dispatch queue, starting one more thread, etc)? And even if it
> did use run loops, why is that a problem?
The problem is simply that we're discussing usi
+1 from me.
I ended up making a wrapper objc->swift around system() since it was removed
from swift recently, however, it behaves (from a user standpoint) exactly how
I’d like. If my command line util jumps out to another program and it needs
stdin/out/err, it all just passes through which is
Why does it imply a run loop rather than one of many multithreading
possibilities (dispatch queue, starting one more thread, etc)? And even if it
did use run loops, why is that a problem?
In general we have been discouraging the use of synchronous and blocking API
for many years now. It’s conve
I did some performance testing, and found that while using
concurrentPerform for a set of long running operations resulted in half the
execution time of synchronous code on macOS, on Linux the execution time
was not meaningfully different from the synchronous version. Is this
expected?
Cheers,
Sp