@accepts(RB.Source) @returns(<list>) def find_batch_by_source(source)
Finds all transfer batches where @source is the source or destination. This should be used to wait for transfers to finish (or cancel them) before ejecting a device. The transfer batches are returned in the order they're found in the queue, so waiting for the @RBTrackTransferBatch::complete signal on the last one is sufficient to wait for them all to finish.
source : |
the RB.Source to search for |
Returns : |
GList of RB.TrackTransferBatch objects, not referenced |