Queuer is a queue manager, built on top of OperationQueue and Dispatch (aka GCD). It allows you to create any synchronous and asynchronous task easily, with just a few lines. * Currently, URLSession.shared property is not yet implemented on Linux.
https://github.fabriziobrancati.comTags | queuer operationqueue carthage semaphore dispatch asynchronous-tasks tvos watchos swift-package-manager foundation grand-central-dispatch task synchronous-tasks |
Implementation | Swift |
License | MIT |
Platform | MacOS |
Syntactic sugar in Swift for asynchronous dispatches in Grand Central Dispatch
SwifterSwift is a collection of over 500 native Swift extensions, with handy methods, syntactic sugar, and performance improvements for wide range of primitive data types, UIKit and Cocoa classes –over 500 in 1– for iOS, macOS, tvOS, watchOS and Linux. Add the extensions folder to your Xcode project to use all extensions, or a specific extension.
xcode carthage cocoapods tvos ios swifterswift extensions uikit swift-package-manager swift-extensions swift-library open-source mit watchos productivity-booster awesome unit-testing foundationpthreads getting you down? libdispatch, aka Grand Central Dispatch (GCD) is Apple's high-performance event-handling library, introduced in OS X Snow Leopard. It provides asynchronous task queues, monitoring of file descriptor read and write-ability, asynchronous I/O (for sockets and regular files), readers-writer locks, parallel for-loops, sane signal handling, periodic timers, semaphores and more. You'll want to read over Apple's API reference. I've added the ability to integrate libdispatch's main queue with third-party run-loops, e.g. GLib's GMainLoop. Call dispatch_get_main_queue_handle_np() to get a file descriptor your run-loop can monitor for reading; when it becomes readable call dispatch_main_queue_drain_np() to execute the pending tasks.
Zewo is a lightweight library for web applications in Swift.Zewo is not a web framework. Zewo is a lightweight library for web applications in Swift. Most server-side Swift projects use Grand Central Dispatch (GCD) as the concurrency library of choice. The drawback of using GCD is that its APIs are asynchronous. With async code comes callback hell and we all know it, it's no fun.
swift coroutines synchronous-apis server-side-swift zewo swiftenv concurrency xcode heroku swiftpm slack buildpack non-blocking fibers green-threadsEFQRCode is a lightweight, pure-Swift library for generating pretty QRCode image with input watermark or icon and recognizing QRCode from image, it is based on CoreGraphics, CoreImage and ImageIO. EFQRCode provides you a better way to operate QRCode in your app, it works on iOS, macOS, watchOS and tvOS, and it is available through CocoaPods, Carthage and Swift Package Manager. This project is inspired by qrcode. To run the example project manually, clone the repo, demos are in the 'Examples' folder, remember run command sh Startup.sh in terminal to get all dependencies first, then open EFQRCode.xcworkspace with Xcode and select the target you want, run.
ios qrcode barcode barcode-scanner barcode-generator barcodes qrcode-generator qrcode-scanner qrcode-reader qrcodes generator recognizer tvos watchosA template for new Swift Framework. For future runs you can shorten the command to cookiecutter SwiftFrameworkTemplate. However, if you want to use the most recent template you should still run the full command above.
cocoapods carthage cookiecutter watchos tvos ios swift-package-manager frameworkRepeat is small lightweight alternative to NSTimer with a modern Swift Syntax, no strong references, multiple observers reusable instances. Repeat is based upon GCD - Grand Central Dispatch. It also support debouncer and throttler features. If you want to learn more about it check out my article on Medium: "The secret world of NSTimer".
nstimer gcd grand-central-dispatch timer debounce throttlerGCDKit is Grand Central Dispatch simplified with Swift. GCDKit implements the following constructs. To see how they work, jump right to the Common Usage Patterns section below.
Chronos is a collection of useful Grand Central Dispatch utilities. If you have any specific requests or ideas for new utilities, don't hesitate to create a new issue. Chronos is available under the MIT License.
SFSafeSymbols can be installed via Swift Package Manager, Accio, Carthage or CocoaPods. Supported platforms are iOS (11.0+), tvOS (11.0+) and watchOS (6.0+), although the actual functionality is of course only accessible starting with iOS 13.0, tvOS 13.0 and watchOS 6.0.
icons symbols ios sfsymbolsA Swift port is at GCDSwift. GCDObjC.h is the only header file that needs to be imported.
gcd grand-central-dispatch ios cocoapodsEFQRCode is a lightweight, pure-Swift library for generating pretty QRCode image with input watermark or icon and recognizing QRCode from image, it is based on CoreGraphics, CoreImage and ImageIO. EFQRCode provides you a better way to operate QRCode in your app, it works on iOS, macOS, watchOS and tvOS, and it is available through CocoaPods, Carthage and Swift Package Manager. This project is inspired by qrcode. To run the example project manually, clone the repo, demos are in the 'Examples' folder.
ios qrcode barcode barcode-scanner barcode-generator barcodes qrcode-generator qrcode-scanner qrcode-reader qrcodes generator recognizer tvosThis is a semaphore implementation for use with async and await. The implementation follows the traditional definition of a semaphore rather than the definition of an asynchronous semaphore seen in some js community examples. Where as the latter one generally allows every defined task to proceed immediately and synchronizes at the end, async-sema allows only a selected number of tasks to proceed at once while the rest will remain waiting. Async-sema manages the semaphore count as a list of tokens instead of a single variable containing the number of available resources. This enables an interesting application of managing the actual resources with the semaphore object itself. To make it practical the constructor for Sema includes an option for providing an init function for the semaphore tokens. Use of a custom token initializer is demonstrated in examples/pooling.js.
package async asynchronous semaphore awaitSimple CommonCrypto wrapper for Swift for macOS, iOS, watchOS, and tvOS with Carthage support. This library depends on CommonCrypto since you can't use it directly from Swift. If you don't my extensions and just want that made easy, use that library directly.
ios watchos tvos carthageA framework for functional types and operations designed to fit naturally into Swift. As a language with first-class functions, Swift supports the use of functions as values. This means that functions can be stored in variables and passed as arguments to other functions.
functional-programming ios watchos tvos swift-package-manager cocoapods carthageThis library seeks to add common string manipulation functions, including common regular expression capabilities, that are needed in both mobile and server-side development, but are missing in Swift's Standard Library. The full documentation can be found at http://www.sabintsev.com/Guitar/.
string-manipulation cross-platform ios tvos watchos swift-server cocoapods carthage swift-package-manager regex regular-expression padding trimming latinizationIt makes a preview from an URL, grabbing all the information such as title, relevant texts and images. To use SwiftLinkPreview as a pod package just add the following in your Podfile file.
flow watchos tvos ios carthage cocoapods swift-package-manager crawler preview url website regular-expressions relevant-textselectron-remote provides an alternative to Electron's remote module based around Promises instead of synchronous execution. It also provides an automatic way to use BrowserWindows as "background processes" that auto-scales based on usage, similar to Grand Central Dispatch or the .NET TPL Taskpool. Remote is super convenient! But it also has some downsides - its main downside is that its action is synchronous. This means that both the main and window processes will wait for a method to finish running. Even for quick methods, calling it too often can introduce scroll jank and generally cause performance problems.
remote electron rxTaskQueue is a Swift library which allows you to schedule tasks once and then let the queue execute them in a synchronous manner. The great thing about TaskQueue is that you get to decide on which GCD queue each of your tasks should execute beforehand and leave TaskQueue to do switching of the queues as it goes. Even if your tasks are asynchronious like fetching location, downloading files, etc. TaskQueue will wait until they are finished before going on with the next task.
concurrencpp is a tasking library for C++ allowing developers to write highly concurrent applications easily and safely by using tasks, executors and coroutines. By using concurrencpp applications can break down big procedures that need to be processed asynchronously into smaller tasks that run concurrently and work in a co-operative manner to achieve the wanted result. concurrencpp also allows applications to write parallel algorithms easily by using parallel coroutines. concurrencpp is a task-centric library. A task is an asynchronous operation. Tasks offer a higher level of abstraction for concurrent code than traditional thread-centric approaches. Tasks can be chained together, meaning that tasks pass their asynchronous result from one to another, where the result of one task is used as if it were a parameter or an intermediate value of another ongoing task. Tasks allow applications to utilize available hardware resources better and scale much more than using raw threads, since tasks can be suspended, waiting for another task to produce a result, without blocking underlying OS-threads. Tasks bring much more productivity to developers by allowing them to focus more on business-logic and less on low-level concepts like thread management and inter-thread synchronization.
cpp scheduler coroutines concurrency tasks multithreading concurrent-programming asynchronous-programming threading await async-await task-scheduler thread-safety timers executor-service coroutine threadpool cpp20 executors
We have large collection of open source products. Follow the tags from
Tag Cloud >>
Open source products are scattered around the web. Please provide information
about the open source projects you own / you use.
Add Projects.