AsyncTaskSwitcher
Swift asynchronous task switcher: it calls the completion handler of the most-recently-completed asynchronous task.
Generate Xcode project
swift package generate-xcodeproj
Testing
macOS
swift test
Docker Linux
IMPORTANT: regenerate Linux test list executing
swift test --generate-linuxmain
Execute on base swift:5.2
image
docker run --rm \
--volume "$(pwd):/package" \
--workdir '/package' \
swift:5.2 \
/bin/bash -c 'swift test'
or create a new image based on Dockerfile
and run it
docker build --tag async-task-switcher .
docker run --rm async-task-switcher