• Jason Madden's avatar
    Unify the implementation of Event and AsyncResult. · 0d624726
    Jason Madden authored
    They previously had a great deal of near-duplicate code in handling
    links and waiting. This collapses all of that into a superclass.
    
    Event should have exactly the same semantics, albeit slightly more clear
    lifecycle for events (IMHO).
    
    AsyncResult now behaves more like Event, meaning that:
    - the order of notifications is no longer guaranteed
    - it is slightly more expensive (one more set ivar), but safer in
    concurrent/corner cases.
    0d624726
test__event.py 5.05 KB