Skip to content

Commit e0bb83b

Browse files
SDLEventのpriority引数を少し解説
1 parent 2eb2f36 commit e0bb83b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/asyncpygame/_sdlevent.py

+4
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ class SDLEvent:
9696
9797
# Waits for the left mouse button to be pressed.
9898
e = await sdlevent.wait(MOUSEBUTTONDOWN, filter=lambda e: e.button == 1)
99+
100+
.. note::
101+
102+
``priority`` 引数は ``PriorityExecutor`` の物とは逆に働きます。すなわち大きい値で ``wait()`` しているタスクほと早く再開します。
99103
'''
100104

101105
def __init__(self):

0 commit comments

Comments
 (0)