Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Browse files Browse the repository at this point in the history
p7nov committed Dec 16, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c87600d commit 90a4105
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion doc/reference/reference_lua/box_events.rst
Original file line number Diff line number Diff line change
@@ -68,7 +68,7 @@ Below is a list of all functions and pages related to watchers or events.
- Create a local watcher.

* - :ref:`box.watch_once() <box-watch>`
- Create a local watcher for a single use.
- Get the current key value.

* - :ref:`conn:watch() <conn-watch>`
- Create a watcher for the remote host.
5 changes: 2 additions & 3 deletions doc/reference/reference_lua/box_events/watch_once.rst
Original file line number Diff line number Diff line change
@@ -7,14 +7,13 @@ box.watch_once()

Returns the current value of a given notification key.
The function can be used as an alternative to :ref:`box.watch() <box-watch>`
for cases when the caller only needs to retrieve the current value without
subscribing to future changes.
when the caller only needs the current value without subscribing to future changes.

:param string key: key name

:return: the key value

To read more about watchers, see the :ref:`Functions for watchers <box-watchers>` section.
To read more about watchers, see the :ref:`box-watchers` section.

**Example:**

0 comments on commit 90a4105

Please sign in to comment.