Other components
Component | Translated | Unfinished | Unfinished words | Unfinished characters | Untranslated | Checks | Suggestions | Comments | |
---|---|---|---|---|---|---|---|---|---|
Documentation: reference/reference_lua/compat/compat_tutorial | 0 | 0 | 0 | 0 | 7 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/sharding/vshard_architecture | 0 | 0 | 0 | 0 | 2 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/replication/repl_reseed | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/engines/memtx | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: reference/reference_lua/datetime/interval_arithm | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/engines/vinyl | 0 | 0 | 0 | 0 | 5 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/engines/index | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/sharding/index | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/index | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
|||||||||
Documentation: concepts/engines/memtx_vinyl_diff | 0 | 0 | 0 | 0 | 0 | 0 | 0 | ||
|
Overview
Project website | www.tarantool.io/en/doc/latest |
---|---|
Translation process |
|
Source code repository |
git@github.com:tarantool/doc.git
|
Repository branch | test-weblate |
Weblate repository |
http://weblate.tarantool.io/git/testing_project/documentation-referencereference_luabox_sessiontype/
|
File mask | locale/*/LC_MESSAGES/reference/reference_lua/box_session/push.po |
Translation file | Not available |
Last change | None |
Last author | None |
String statistics
Strings percent | Hosted strings | Words percent | Hosted words | Characters percent | Hosted characters | |
---|---|---|---|---|---|---|
Total | 18 | 799 | 5,423 | |||
Translated | 100% | 18 | 100% | 799 | 100% | 5,423 |
Needs editing | 0% | 0 | 0% | 0 | 0% | 0 |
Read-only | 100% | 18 | 100% | 799 | 100% | 5,423 |
Failing checks | 5% | 1 | 44% | 352 | 42% | 2,300 |
Strings with suggestions | 0% | 0 | 0% | 0 | 0% | 0 |
Untranslated strings | 0% | 0 | 0% | 0 | 0% | 0 |
Quick numbers
and previous 30 days
Trends of last 30 days
—
Hosted words
+100%
—
Hosted strings
+100%
—
Translated
+100%
—
Contributors
—
Browse all translation changes
18 | File in original format as translated in the repository | gettext PO file | |||||||
---|---|---|---|---|---|---|---|---|---|
18 | All strings, converted files enriched with comments; suitable for offline translation | CSV | gettext MO | gettext PO | TBX | TMX | XLIFF 1.1 with gettext extensions | XLIFF 1.1 | XLSX |
-- in it have a function that includes box.session.push:
box.cfg{listen=3301}
box.schema.user.grant('guest','read,write,execute','universe')
x = 0
fiber = require('fiber')
function server_function() x=x+1; fiber.sleep(1); box.session.push(x); end
-- On Shell#2 connect to this server as a "client" that
-- can handle Lua (such as another Tarantool server operating
-- as a client), and initialize a table where we'll get messages:
net_box = require('net.box')
conn = net_box.connect(3301)
messages_from_server = {}
-- On Shell#2 remotely call the server function and receive
-- a SYNCHRONOUS out-of-band message:
conn:call('server_function', {},
{is_async = false,
on_push = table.insert,
on_push_ctx = messages_from_server})
messages_from_server
-- After a 1-second pause that is caused by the fiber.sleep()
-- request inside server_function, the result in the
-- messages_from_server table will be: 1. Like this:
-- tarantool> messages_from_server
-- ---
-- - - 1
-- ...
-- Good. That shows that box.session.push(x) worked,
-- because we know that x was 1.
-- On Shell#2 remotely call the same server function and
-- get an ASYNCHRONOUS out-of-band message. For this we cannot
-- use on_push and on_push_ctx options, but we can use pairs():
future = conn:call('server_function', {}, {is_async = true})
messages = {}
keys = {}
for i, message in future:pairs() do
table.insert(messages, message) table.insert(keys, i) end
messages
future:wait_result(1000)
for i, message in future:pairs() do
table.insert(messages, message) table.insert(keys, i) end
messages
-- There is no pause because conn:call does not wait for
-- server_function to finish. The first time that we go through
-- the pairs() loop, we see the messages table is empty. Like this:
-- tarantool> messages
-- ---
-- - - 2
-- - []
-- ...
-- That is okay because the server hasn't yet called
-- box.session.push(). The second time that we go through
-- the pairs() loop, we see the value of x at the time of
-- the second call to box.session.push(). Like this:
-- tarantool> messages
-- ---
-- - - 2
-- - &0 []
-- - 2
-- - *0
-- ...
-- Good. That shows that the message was asynchronous, and
-- that box.session.push() did its job.