TL;DR
The newCode: Select all
schedule.add_record()
It would just make sense to return the index of the new record.
The docs should als mention that this new record comes already with the default wait condition for the type
Code: Select all
schedule.add_record()