Frees the current patient (i) from each resource via a single C++ call.
Removes the patient from both the using list and the queue (all entries).
Schedules resume events only for resources where the patient was actually
using (i.e., where capacity was freed).
Arguments
- resources
A list of
resource_discreteobjects.- resume_event
NULL(no re-triggering), a single string (same event for all resources' queues), or a character vector of lengthlength(resources)(per-resource events, matched positionally).- amounts
Integer vector of units per resource (default
1Lfor each).
