Skip to content

Instantly share code, notes, and snippets.

@DougGregor
DougGregor / SwiftConcurrencyDependencies.svg
Created December 2, 2020 00:39
Swift Concurrency Proposal Dependencies
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mono0926
mono0926 / firebase_autheintication_delete_all.ts
Last active December 4, 2023 04:08
Firebase Authenticationのユーザー一括削除 (`tsc`でビルドした後に`node GENERATED_JS.js`で実行)
import * as admin from 'firebase-admin';
admin.initializeApp({
credential: admin.credential.cert(__dirname + 'YOUR_KEY_RELATIVE_PATH'),
databaseURL: 'https://YOUR_PROJECT_ID.firebaseio.com',
});
const sleep = (msec: number) => new Promise(resolve => setTimeout(resolve, msec));
(async () => {
@lattner
lattner / TaskConcurrencyManifesto.md
Last active May 23, 2024 03:59
Swift Concurrency Manifesto
@lattner
lattner / async_swift_proposal.md
Last active April 21, 2024 09:43 — forked from oleganza/async_swift_proposal.md
Concrete proposal for async semantics in Swift

Async/Await for Swift

Introduction

Modern Cocoa development involves a lot of asynchronous programming using closures and completion handlers, but these APIs are hard to use. This gets particularly problematic when many asynchronous operations are used, error handling is required, or control flow between asynchronous calls gets complicated. This proposal describes a language extension to make this a lot more natural and less error prone.

This paper introduces a first class Coroutine model to Swift. Functions can opt into to being async, allowing the programmer to compose complex logic involving asynchronous operations, leaving the compiler in charge of producing the necessary closures and state machines to implement that logic.

Feature name

  • Proposal: SE-NNNN

  • Authors: TODO

  • Review Manager: TBD

  • Status: Awaiting review

  • Bugs: SR-115

Introduction

@mono0926
mono0926 / commit_message_example.md
Last active May 23, 2024 00:48
[転載] gitにおけるコミットログ/メッセージ例文集100