Fetching details from the dictionary...
taking a quantity (of time, people, etc.)
similar to ...
dependent on ...; reliant on ...
while ...; when ...; in the midst of ...
「掛り」 has another reading with different meanings.
starting (e.g. of an engine); engaging (e.g. of a lock)