horothesun / AsyncTaskSwitcher

Swift asynchronous task switcher: it calls the completion handler of the most-recently-completed asynchronous task.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AsyncTaskSwitcher

CI Linux CI macOS codecov SwiftPM

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

About

Swift asynchronous task switcher: it calls the completion handler of the most-recently-completed asynchronous task.

License:MIT License


Languages

Language:Swift 99.5%Language:Dockerfile 0.5%