mirror of
https://github.com/autistic-symposium/web3-starter-py.git
synced 2025-05-17 14:10:21 -04:00
16 lines
No EOL
252 B
Python
16 lines
No EOL
252 B
Python
#!/usr/bin/env python3
|
|
|
|
import sys
|
|
import logging
|
|
import multiprocessing
|
|
|
|
|
|
def worker():
|
|
print('Doing some work...')
|
|
sys.stdout.flush()
|
|
|
|
|
|
multiprocessing.log_to_stderr(logging.DEBUG)
|
|
p = multiprocessing.Process(target=worker)
|
|
p.start()
|
|
p.join() |