镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
swiftstackstashPublic

About

[Deprecated] Protocol to swap multitasking system

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

39 Commits

Folders and files

Repository files navigation

Async

An abstraction over coroutine-based io poller and asynchronous task.

This design allows us to easily swap our fiber system to another one provided by the host application.

Package.swift

.package(url: "https://github.com/swiftstack/async.git", .branch("fiber"))

Usage

async.main is just a wrapper around async.task to hide do {} catch {}

import Fiber

async.use(Fiber.self)

async.main {
    async.task {
        async.sleep(until: .now)
    }
}

loop.run()

About

[Deprecated] Protocol to swap multitasking system

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages