All Projects โ†’ peterfriese โ†’ Swift-Async-Await-Experiments

peterfriese / Swift-Async-Await-Experiments

Licence: Apache-2.0 license
Experiments with Swift's new async/await feature (SE 0296)

Programming Languages

swift
15916 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Swift-Async-Await-Experiments

action-eslint
๐Ÿ‹๐Ÿฌ TypeScript/JavaScript ESLint action
Stars: โœญ 24 (+41.18%)
Mutual labels:  async-await
koa2-example-app
An app that is built using koa2 and async/await
Stars: โœญ 85 (+400%)
Mutual labels:  async-await
conquerant
lightweight async/await for Clojure
Stars: โœญ 31 (+82.35%)
Mutual labels:  async-await
EnumerableAsyncProcessor
Process Multiple Asynchronous Tasks in Various Ways - One at a time / Batched / Rate limited / Concurrently
Stars: โœญ 84 (+394.12%)
Mutual labels:  async-await
auto-async-wrap
automatic async middleware wrapper for expressjs errorhandler.
Stars: โœญ 21 (+23.53%)
Mutual labels:  async-await
is-async-supported
Check if async/await is available natively
Stars: โœญ 16 (-5.88%)
Mutual labels:  async-await
promisify-child-process
seriously like the best async child process library
Stars: โœญ 54 (+217.65%)
Mutual labels:  async-await
Mvvm
MVVM helpers, including calculated properties and asynchronous notification tasks.
Stars: โœญ 129 (+658.82%)
Mutual labels:  async-await
banana
๐ŸŒ Modern C++ Telegram Bot API library
Stars: โœญ 30 (+76.47%)
Mutual labels:  async-await
eslint-config-marine
๐Ÿฌ Typescript ESLint shareable config
Stars: โœญ 16 (-5.88%)
Mutual labels:  async-await
react-app-simple-chat-app
A Simple Chat Application using MERN stack (MongoDB, Express JS, React JS, Node JS) and Socket.io for real time chatting
Stars: โœญ 41 (+141.18%)
Mutual labels:  async-await
AsyncTcpClient
An asynchronous variant of TcpClient and TcpListener for .NET Standard.
Stars: โœญ 125 (+635.29%)
Mutual labels:  async-await
tempdb
Redis-backed ephemeral key-value store for Node
Stars: โœญ 30 (+76.47%)
Mutual labels:  async-await
aioudp
Asyncio UDP server
Stars: โœญ 21 (+23.53%)
Mutual labels:  async-await
async-preloader
Assets preloader using ES2017 async/await and fetch.
Stars: โœญ 44 (+158.82%)
Mutual labels:  async-await
AsyncClipboardService
๐Ÿ“‹ An async & low-level windows clipboard service implementation for .NET, C#
Stars: โœญ 14 (-17.65%)
Mutual labels:  async-await
eslint-config-welly
๐Ÿ˜Ž โš™๏ธ ESLint configuration for React projects that I do. Feel free to use this!
Stars: โœญ 21 (+23.53%)
Mutual labels:  async-await
of
๐Ÿฌ Promise wrapper with sugar ๐Ÿฌ
Stars: โœญ 13 (-23.53%)
Mutual labels:  async-await
tomodachi
๐Ÿ’ป Microservice library / framework using Python's asyncio event loop with full support for HTTP + WebSockets, AWS SNS+SQS, RabbitMQ / AMQP, middleware, etc. Extendable for GraphQL, protobuf, gRPC, among other technologies.
Stars: โœญ 170 (+900%)
Mutual labels:  async-await
async-await-codemod
Codemod script for migrating promise-based functions to use async/await syntax
Stars: โœญ 22 (+29.41%)
Mutual labels:  async-await

Contributors Forks Stargazers Issues Discussions Feature Requests License


Logo

Swift async/await Experiments

Experiments with Swift's new async/await feature (SE 0296)

Join the discussion ยท Report Bug ยท Request Feature

About The Project

Experiments with Swift's new async/await feature (SE 0296)

Here's an article that shows you how to use this feature.

Requirements

Previous versions of the code in this repository made use of the experimental Swift compiler toolchain. Since WWDC 2021, support for async/await is now available in the default compiler toolchain.

  • Xcode 13 or later
  • Swift Compiler Toolchain (Jan 04, 2021 or later)

Breaking changes

As this is still in development, there will be changes. I updated the code to reflect those changes, and wouldn't be surprised to see further breaking changes before a final release is cut. If you run into any issues, feel free to open an issue on this repo (or even better - send a PR if you've got time time to build a solution).

2021-08-06 (WWDC 21)

  • Xcode 13 now contains Swift 5.5, we no longer need to download the experimental compiler toolchain
  • According to the Swift team, the correct way to launch an async task from with in SwiftUI is async { } (in beta 1) or Task { } (after beta 1).

2021-05-25

The Swift Development team has been making a couple of breaking changes (after all, this is still pre-release software):

  • @asyncHandler has been removed from the language (see PR #37415). According to this discussion, we can wrap asynchronous code in a call to detach { } as an alternative. As of yet, it is unclear what if there will be a replacement for @asyncHandler.
  • Since Swift can now be shipped with the OS, all new features in the Swift standard library will need to have an availability annotation. To be able to mark new APIs as available for unreleased versions of future versions of the OS, a special case of 9999 has been introduced. This also means that all code using those new APIs will need to use availability flags as well. For details, see this discussion on the Swift forums.

License

Distributed under the Apache 2 License. See LICENSE for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].