Loading…
![]() New source string testing_project / Documentation: reference/reference_lua/compat/fiber_channel_close_mode — English |
Loading…
![]() New source string testing_project / Documentation: reference/reference_lua/compat/fiber_channel_close_mode — English |
---
...
tarantool> compat
---
- - yaml_pretty_multiline: default (old)
- json_escape_forward_slash: default (old)
- fiber_channel_close_mode: default (old)
...
tarantool> fiber = require('fiber')
---
...
tarantool> ch = fiber.channel(10)
---
...
tarantool> ch:put('one')
---
- true
...
tarantool> ch:put('two')
---
- true
...
tarantool> ch:get()
---
- one
...
tarantool> ch:close()
---
...
tarantool> ch:get()
---
- null
...
tarantool> compat.fiber_channel_close_mode = 'new'
---
...
tarantool> ch = fiber.channel(10)
---
...
tarantool> ch:put('one')
---
- true
...
tarantool> ch:put('two')
---
- true
...
tarantool> ch:get()
---
- one
...
tarantool> ch:close()
---
...
tarantool> ch:get()
---
- two
...
tarantool> ch:get()
---
- null
...