Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
ThreadGroup#enclosed?
thgrp.enclosed? → true or false
thread.c
View on GitHub ↗
static VALUE
thgroup_enclosed_p(VALUE group)
{
struct thgroup *data;
TypedData_Get_Struct(group, struct thgroup, &thgroup_data_type, data);
return RBOOL(data->enclosed);
}
Returns true if the thgrp is enclosed. See also ThreadGroup#enclose.