Skip to content

Commit a3664c4

Browse files
Edit docs
1 parent 1450e1a commit a3664c4

6 files changed

Lines changed: 14 additions & 18 deletions

File tree

roadmap.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,9 @@
66
- Remove `anim_with_ratio`
77
- `modal` サブモジュールでは `out_duration``in_duration` を個別に指定するのに対し `transition` サブモジュールでは両者を足した `duration` を指定する。
88
この仕様のばらつきを統一する。
9+
10+
11+
# 0.12.0
12+
13+
- `sync_attr` `sync_attrs` `smooth_attr` を通常のコンテキストマネージャのように `__enter__()` の実行によって効力を発揮するように変更する。
14+
- Remove `sleep_free`

sphinx/notes-ja.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ asyncioも同じです。
2727
(追記)
2828
Python3.14にて :func:`asyncio.create_task` と :meth:`asyncio.TaskGroup.create_task` に ``eager_start`` 引数が加わりました。
2929
また `直ちに再開する機能`_ も議題になっているようです。
30-
なのでasynckivyができる事が全てasyncioでもできるようになる未来はあるかもしれません
30+
なので将来asynckivyができる事が全てasyncioでもできるようになるかもしれません
3131

3232
.. _直ちに再開する機能: https://discuss.python.org/t/an-eager-way-to-set-result-on-asyncio-future/106161
3333
.. _車輪の再発明: https://ja.wikipedia.org/wiki/%E8%BB%8A%E8%BC%AA%E3%81%AE%E5%86%8D%E7%99%BA%E6%98%8E

sphinx/notes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ I/O without blocking the main thread.
5858
def thread_blocking_operation():
5959
'''
6060
This function is called from outside the main thread so you should not
61-
perform any graphics-related operations here.
61+
interact with Kivy except through ``Clock``.
6262
'''
6363
6464

sphinx/submod-modal.rst

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,3 @@ API Reference
4545
:members:
4646
:undoc-members:
4747
:exclude-members:
48-
49-
50-
Notes
51-
-----
52-
53-
You might wonder why this module has its own transitions when there's already a ``transition`` submodule.
54-
The reason is that modal dialogs require transitions in which the dialog moves in first and then moves out,
55-
whereas the transitions in the ``transition`` submodule move a widget out first and then back in.
56-
57-
Perhaps I should rename the ``transition`` submodule to ``outin_transition`` and move the modal dialog transitions
58-
into a separate ``inout_transition`` submodule.

src/asynckivy/_event.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ async def original_rest_of_touch_events(widget, touch, *, stop_dispatching=False
266266
widget, touch, stop_dispatching=stop_dispatching, grab=grab
267267
) as on_touch_move:
268268
while True:
269-
yield await on_touch_move()
269+
await on_touch_move()
270+
yield
270271
271272
However, be aware of :ref:`the-problem-with-async-generators`.
272273

src/asynckivy/_threading.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ async def run_in_thread(func, *, daemon=None):
2626
See :ref:`io-in-asynckivy` for details.
2727
2828
.. warning::
29-
When the caller Task is cancelled, the ``func`` will be left running, which violates "structured concurrency".
29+
When the caller Task is cancelled, the ``func`` will be left running, which violates structured concurrency.
30+
Also, do not call this function from outside the main thread unless you know what you're doing.
3031
'''
3132
ev = asyncgui.ExclusiveEvent()
3233
Thread(
@@ -52,11 +53,10 @@ async def run_in_executor(executor: Executor, func, *args):
5253
5354
:param args: Arguments to pass to the ``executor.submit`` method.
5455
55-
See :ref:`io-in-asynckivy` for details.
56-
5756
.. warning::
5857
When the caller Task is cancelled, the ``func`` will be left running if it has already started,
59-
which violates "structured concurrency".
58+
which violates structured concurrency.
59+
Also, do not call this function from outside the main thread unless you know what you're doing.
6060
6161
.. versionchanged:: 0.11.1
6262
Added support for passing arguments to the ``executor.submit`` method.

0 commit comments

Comments
 (0)