Swift Priority-queue Resources