net.box: add __serialize and __tostring methods for future objects
__tostring always returns the type name, which is 'net.box.request'. __serialize returns user-defined fields attached to the future or an empty table if there's none. Closes #6314
Showing
- src/box/lua/net_box.c 21 additions, 0 deletionssrc/box/lua/net_box.c
- test/box/net.box_fiber-async_gh-3107.result 33 additions, 0 deletionstest/box/net.box_fiber-async_gh-3107.result
- test/box/net.box_fiber-async_gh-3107.test.lua 12 additions, 0 deletionstest/box/net.box_fiber-async_gh-3107.test.lua
Loading
Please register or sign in to comment