scipp / beamlime

Live data reduction visualisation for ESS
https://scipp.github.io/beamlime/
BSD 3-Clause "New" or "Revised" License
1 stars 1 forks source link

DaemonInterface as a generator. #146

Closed YooSunYoung closed 7 months ago

YooSunYoung commented 7 months ago

Related to #127

Main Changes

Pros

Cons?

Memo

I also tried making handlers AsyncGenerator to try using asend. I wanted to try this to avoid checking attribute to see if it is the very first message to process. But it was not so neat after all since you always have to asend None, and it seems like making things a bit slower..... So I tried using try-exception instead of checking attributes to save time in the run-time.

SimonHeybrock commented 7 months ago

There are merge conflicts here. Is this PR still relevant, or will it be replaced?

YooSunYoung commented 7 months ago

There are merge conflicts here. Is this PR still relevant, or will it be replaced?

I'll fix it!

I fixed it!