Skip to content

Conversation

@bpcreech
Copy link
Owner

test_interrupts_background_task_on_shutdown contains an example infinite-loop microtask which would (without this change) prevent MiniRacer from ever exiting.

This also adds an explicit close and context manager around MiniRacer on the Python side, which would have been nice to have already, and is useful here to write the unit test.

@bpcreech bpcreech force-pushed the feature/no-freeze-on-shutdown branch from a587746 to f559678 Compare May 12, 2024 01:35
@bpcreech bpcreech force-pushed the feature/no-freeze-on-shutdown branch from f559678 to d5bdc1a Compare May 12, 2024 15:09
@bpcreech bpcreech merged commit 8a49904 into main May 12, 2024
@bpcreech bpcreech deleted the feature/no-freeze-on-shutdown branch May 27, 2024 21:26
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.

2 participants