Skip to content

Commit 8b0c95d

Browse files
committed
expose max_queue_size within ReactPyConfig
1 parent 5148a1c commit 8b0c95d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

src/reactpy/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,6 +1101,7 @@ class ReactPyConfig(TypedDict, total=False):
11011101
reconnect_backoff_multiplier: float
11021102
async_rendering: bool
11031103
debug: bool
1104+
max_queue_size: int
11041105
tests_default_timeout: int
11051106

11061107

tests/test_asgi/test_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ def test_process_settings():
1414
assert config.REACTPY_ASYNC_RENDERING.current is False
1515
utils.process_settings({"async_rendering": True})
1616
assert config.REACTPY_ASYNC_RENDERING.current is True
17+
utils.process_settings({"max_queue_size": 10})
18+
assert config.REACTPY_MAX_QUEUE_SIZE.current == 10
1719

1820

1921
def test_invalid_setting():

0 commit comments

Comments
 (0)