Swift version of my Pipeline task management experiment