Closed madkins23 closed 1 year ago
That call is actually necessary, it's mainly to update the threads. Without it, the threads view doesn't get updated during a long running function. I think I'll move it to run-in-thread, because it makes a little more sense there, so I'll just add it to the work I'm currently doing.
That call is actually necessary, it's mainly to update the threads. Without it, the threads view doesn't get updated during a long running function. I think I'll move it to run-in-thread, because it makes a little more sense there, so I'll just add it to the work I'm currently doing.
That makes sense. It does make me think about extending the refresh
notification to specify one or more specific elements to refresh, with the default (no specifications) being to do all of them. I suspect I'm over-thinking it, everything runs pretty fast and local CPU cycles are essentially free.
A simple call to evaluate a text string containing LISP results in two
refresh
notifications, one before the result and one after:On the client side the
refresh
notifications result in multiple calls to update information. Alive PR 146 would add one (or possibly two) more calls to the server to refresh data. While these calls are quite fast it seems like one of the is redundant.It looks like the
run-in-thread
callsrun-fn
which sends out the firstrefresh
notification before running the code and then afterwardsrun-in-thread
issues the second one. Since the call torun-fn
is made inside of anunwind-protect
which also contains therefresh
notification ofrun-in-thread
it seems like there is no down side to removing therun-fn
notification.I also checked for other calls to
run-fn
but it seems to only be used withinrun-in-thread
so there shouldn't be any negative fallout from removing the redundant call.