GE Lua Documentation

Press F to search!

newtry

Definition


-- @/=[C]:-1
function newtry(...)

Callers

@/lua/common/libs/luasocket/socket/ftp.lua
    -- make sure everything gets closed in an exception
    f.try = socket.newtry(function() f:close() end)
    return f
@/lua/common/libs/luasocket/socket/smtp.lua
    -- make sure tp is closed if we get an exception
    s.try = socket.newtry(function()
        s:close()
@/lua/common/libs/luasocket/socket/http.lua
    -- create finalized try
    h.try = socket.newtry(function() h:close() end)
    -- set timeout before connecting
@/lua/common/libs/copas/copas/http.lua
    -- create finalized try
    h.try = socket.newtry(function() h:close() end)
    -- set timeout before connecting
@/lua/common/libs/luasocket/socket/socket.lua

_M.try = _M.newtry()