mirror of
https://github.com/rivo/tview.git
synced 2026-04-27 05:45:49 +03:00
[PR #652] [MERGED] Add batch writer for TextView's #1006
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tview#1006
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/rivo/tview/pull/652
Author: @SamWhited
Created: 9/23/2021
Status: ✅ Merged
Merged: 10/29/2021
Merged by: @rivo
Base:
master← Head:tview_writer📝 Commits (2)
4385df9Add batch writer for TextView'sc0678d7Fix race condition with locking in SetText📊 Changes
2 files changed (+88 additions, -7 deletions)
View changed files
➕
example_textview_test.go(+21 -0)📝
textview.go(+67 -7)📄 Description
I'd like to propose this as an alternative superset to #641 (See also discussion in #636).
This allows for backwards compatibility by not modifying the locking characteristics of
Write, but also gives us a way to perform writes in a tight loop without incurring the overhead of locking.Usage would look like this:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.