Skip to content

Conversation

noborus
Copy link
Owner

@noborus noborus commented Dec 25, 2024

Added WaitEOF function to wait for EOF notification.

Added `WaitEOF` function to wait for EOF notification.
@@ -59,6 +59,8 @@ type Document struct {
// alignConv is an interface that converts alignment.
alignConv *align

cond *sync.Cond
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need this?

I have never faced sync.Cond until now, so I looked at documentation

https://pkg.go.dev/sync#Cond

For many simple use cases, users will be better off using channels than a Cond

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you really need this?

I have never faced sync.Cond until now, so I looked at documentation

https://pkg.go.dev/sync#Cond

For many simple use cases, users will be better off using channels than a Cond

That's a good point.
I thought it would be best to use Broadcast (), which does not have to be received or does not need to receive more than one.
I think it is difficult to implement it without mistakes on a channel.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK then

Co-authored-by: ccoVeille <3875889+ccoVeille@users.noreply.github.com>
@noborus noborus merged commit 0af2c9d into master Dec 27, 2024
8 checks passed
@noborus noborus deleted the wait-for-eof branch January 20, 2025 01:19
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Jan 28, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [noborus/ov](https://github.com/noborus/ov) | minor | `v0.37.0` -> `v0.38.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>noborus/ov (noborus/ov)</summary>

### [`v0.38.0`](https://github.com/noborus/ov/releases/tag/v0.38.0)

[Compare Source](noborus/ov@v0.37.0...v0.38.0)

#### What's Changed

-   Improve escape sequence compatibility by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#656
    -   Add support for colon-separated values by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#657
    -   Change the range to csiParamStart/csiParamEnd  by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#659
    -   Add stdin specification by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#661
    -   Reimplemented osc hyperlink by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#664
    -   Fixed incompatibility in handling invalid osc by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#665

-   Upgrade tcell to v2.8.0 and add support for Underline style and color by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#680

-   Add EOF notification feature by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#683
    -   Add function to wait for EOF by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#673

-   Fix the first position of Follow and Followall by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#671

-   Fix DocumentLen() out-of-range checks by [@&#8203;noborus](https://github.com/noborus) in noborus/ov#675

**Full Changelog**: noborus/ov@v0.37.0...v0.38.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xMzcuMiIsInVwZGF0ZWRJblZlciI6IjM5LjEzNy4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants