Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Don't block the event loop on context end and related fixes #9

Merged
merged 1 commit into from
Jan 12, 2024

Commits on Jan 12, 2024

  1. Don't block the event loop on context end and related fixes

    Previously setTimeout (and co) might block the event loop in cases where
    timeout hasn't triggered but the context has been done.
    
    While fixing that some other potential races were found. Most of them
    due to trying to write less code - but it is actually important that if
    we are using the event loop we do all the stuff on it.
    
    Additionally fixing a panic in init context if a timer gets interrupted
    - all due to using the logger from the lib.State.
    
    The test added did tease out a bunch of this issues, and does reproduce
    the original issue *on* occasion. Unfortunately a better reproducible
    test seems to be very hard to write
    mstoykov committed Jan 12, 2024
    Configuration menu
    Copy the full SHA
    6981438 View commit details
    Browse the repository at this point in the history