wx:batch/1 on Windows 10

zxq9 zxq9@REDACTED
Tue Jan 28 01:28:30 CET 2020


On 2020/01/28 9:22, Dmitry Belyaev wrote:
> Maybe
> 
> batch(Window, Fun) ->
> ok = wxWindow:freeze(Window),
> try
> Fun()
> after ->
> ok = wxWindow:thaw(Window)
> end.
> 
> would be better

What would be better about that? If there is a problem in the GUI update 
  (Fun()) the last thing I want to have happen is the Erlang half 
sticking around.

-Craig



More information about the erlang-questions mailing list