Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

multiprocess #77

Open
wants to merge 1 commit into
base: issues/73
Choose a base branch
from
Open

multiprocess #77

wants to merge 1 commit into from

Conversation

komuw
Copy link
Owner

@komuw komuw commented May 26, 2019

Thank you for contributing to wiji.
Every contribution to wiji is important.

Contributor offers to license certain software (a “Contribution” or multiple
“Contributions”) to wiji, and wiji agrees to accept said Contributions,
under the terms of the MIT License.
Contributor understands and agrees that wiji shall have the irrevocable and perpetual right to make
and distribute copies of any Contribution, as well as to create and distribute collective works and
derivative works of any Contribution, under the MIT License.

Now,

What(What have you changed?)

Why(Why did you change it?)

References:

from multiprocessing import Process
from threading import Thread


def start_loop(coro):
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

when using multi-processing, I do not think we need to;

loop = asyncio.new_event_loop()
asyncio.set_event_loop(loop)

I think we can just do;

asyncio.run( per_process_main())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant