Open NiccoloBargioni opened 6 days ago
Using status, say, to disable the solve button during solution computation, causes
status
solve
Publishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:))
Because the .solve(_:) method sets the status value, but .solve(_;) in meant to be invoked from a background thread in order not to block the UI.
.solve(_:)
.solve(_;)
For example in ZombieTron ValvesMachineSolverView (Beast from Beyond EE).
ValvesMachineSolverView
Using
status
, say, to disable thesolve
button during solution computation, causesPublishing changes from background threads is not allowed; make sure to publish values from the main thread (via operators like receive(on:))
Because the
.solve(_:)
method sets thestatus
value, but.solve(_;)
in meant to be invoked from a background thread in order not to block the UI.