Open itamarst opened 5 years ago
The discussion above has some suggestions for solutions.
Still think there should be some Trio-specific support, but adding a 10-second delay to the parser before it finishes up an action would probably catch most cases.
(Based on discussion in https://trio.discourse.group/t/eliot-the-causal-logging-library-now-supports-trio/167)
Consider:
The result:
What happens is that the
start_action
finishes before the nursery schedules thesay()
calls, so they get logged after the action is finished. Putting thestart_action
outside the nursery lifetime fixes this.Depending how you look at this this is either: