Better concurrency pattern for LivePrinters
#439
Labels
proposal
Proposal to add a new feature to pterm
proposal-accepted
Proposals which are accepted for implementation in the future
Currently, the live printers do not adhere to a common concurrency pattern, which has resulted in thread safety issues such as those described in issue #391. In order to fix these issues, I suggest introducing a mutex to ensure the thread safety of the variables.
However, it is worth noting that this change may necessitate the migration of some methods to pointer methods, which could potentially be a breaking change. Further investigation will be required to determine the full extent of this impact.
This issue was previously identified in relation to the
SpinnerPrinter
in issue #423.The text was updated successfully, but these errors were encountered: