requestRide

open suspend fun requestRide(stop: Stop, destination: String): Stop.Ride(source)

Joins the line at a stop and returns immediately, without waiting to be carried.

For a process that must do something between joining and boarding. The returned ride must be passed to awaitRide; abandoning it would leave a vehicle to collect a load that never suspends.

Return

the ride, which is also where its wait is recorded