diff options
author | Tor Norbye <tnorbye@google.com> | 2014-08-20 17:28:18 -0700 |
---|---|---|
committer | Tor Norbye <tnorbye@google.com> | 2014-08-20 17:28:18 -0700 |
commit | d76e3920c56d37c942092b7dca20fcaded81c0a5 (patch) | |
tree | 80a55c7b59c38377216daaada4e8bc47b69ceb9a /python/testData/debug/test_multiprocess.py | |
parent | 3b37877a2561bf9fbe072253a18688807d523505 (diff) | |
parent | 1aa2e09bdbd413eacb677e9fa4b50630530d0656 (diff) | |
download | idea-d76e3920c56d37c942092b7dca20fcaded81c0a5.tar.gz |
Merge remote-tracking branch 'aosp/upstream-master' into merge
Conflicts:
.idea/modules.xml
platform/platform-impl/src/com/intellij/openapi/updateSettings/impl/UpdatesXmlLoader.java
Change-Id: Id899dae9a1e1c79272f8a70e14a7dcef4f760d7f
Diffstat (limited to 'python/testData/debug/test_multiprocess.py')
-rw-r--r-- | python/testData/debug/test_multiprocess.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/python/testData/debug/test_multiprocess.py b/python/testData/debug/test_multiprocess.py new file mode 100644 index 000000000000..5fc6be4625d8 --- /dev/null +++ b/python/testData/debug/test_multiprocess.py @@ -0,0 +1,13 @@ +from concurrent.futures import ProcessPoolExecutor +def my_foo(arg_): + return arg_ + +def main(): + arg = ['Result:OK'] + with ProcessPoolExecutor(1) as exec: + result = exec.map(my_foo, arg) + for i in result: + print(i) + +if __name__ == '__main__': + main()
\ No newline at end of file |