-
Notifications
You must be signed in to change notification settings - Fork 47
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
Added tasks tutorial #1027
Added tasks tutorial #1027
Conversation
validate |
doc/basics/tasks_tutorial.rst
Outdated
|
||
For your convenience, every ``Community`` is also a ``TaskManager``. | ||
However, try to avoid spawning any tasks in the ``__init__`` of your ``Community``. | ||
Specifically, you could end up scheduling a task in between your ``Community`` and other ``Community`` initialization |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This sentence is missing a period.
doc/basics/tasks_tutorial.rst
Outdated
.. literalinclude:: tasks_tutorial_6.py | ||
:lines: 18-26 | ||
|
||
Network IO and the DiscoveryStrategy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part feels a bit detached from the overall story which is mostly about the task manager. Maybe you could move it to a separate tutorial file?
validate |
Network IO and the DiscoveryStrategy | ||
==================================== | ||
|
||
This document assumes you have a basic understanding of asyncio tasks, as documented in `the tasks tutorial <../../basics/tasks_tutorial>`_. | ||
You will learn how to use the IPv8's ``DiscoveryStrategy`` class to avoid network congestion. | ||
|
||
The DiscoveryStrategy | ||
--------------------- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@devos50 These lines and the next section heading are new since your last review.
Fixes #977
This PR:
DiscoveryStrategy
creation.These are the basics required to take #979 off of "on hold".