Skip to content
Signals & connectionsOverviewNew · 0.744

iswaitingconnection

Describe a connection associated with a waiting coroutine.

Details#

Returns true for a Lua connection exposing a Thread but no Function, matching a waiting-coroutine representation. A missing reference or non-Lua connection produces false.

Examples#

Example

Luau
local event = Instance.new("BindableEvent")
local own = event.Event:Connect(print)
local connection = getconnection(event.Event, 1)
if connection then print(iswaitingconnection(connection)) end
own:Disconnect()
event:Destroy()