Pending thread support from Ruby