anpol / dispatchkit Goto Github PK
View Code? Open in Web Editor NEW[abandoned] An idiomatic Swift wrapper for the Grand Central Dispatch (GCD) Framework
License: MIT License
[abandoned] An idiomatic Swift wrapper for the Grand Central Dispatch (GCD) Framework
License: MIT License
15de079 removed DispatchQueueAttr.swift from the Xcode project, but the file still exists in the Sources directory. Thus, the swift build command fails.
Remove the DispatchQueueAttr.swift file from the git repository before the next release.
EDIT: Wrote the wrong commit down in the first paragraph
Command failed due to signal: Segmentation fault: 11
Here is the detail:
CompileSwift normal arm64 /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQueue.swift
cd /Users/zzy/Downloads/DispatchKit-master
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSourceType.swift -primary-file /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQueue.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQOSClass.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchGroup.swift /Users/zzy/Downloads/DispatchKit-master/Sources/Bridge.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchDataScale.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQueueAttr.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSemaphore.swift /Users/zzy/Downloads/DispatchKit-master/Sources/Dispatch.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchIO.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchTime.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchObject.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchData.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSource.swift -target arm64-apple-ios7.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -I /Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos -F /Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos -enable-testing -g -module-cache-path /Users/zzy/Downloads/DispatchKit-master/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-generated-files.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-own-target-headers.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-project-headers.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos/include -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DerivedSources/arm64 -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/zzy/Downloads/DispatchKit-master -emit-module-doc-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueuepartial.swiftdoc -Onone -module-name DispatchKit -emit-module-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueuepartial.swiftmodule -serialize-diagnostics-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.dia -emit-dependencies-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.d -emit-reference-dependencies-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.swiftdeps -o /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.o
0 swift 0x0000000111d76fbb llvm::sys::PrintStackTrace(sFILE) + 43
1 swift 0x0000000111d776fb SignalHandler(int) + 379
2 libsystem_platform.dylib 0x00007fff83891eaa sigtramp + 26
3 libsystem_platform.dylib 0x0000000000000003 sigtramp + 2088165747
4 swift 0x000000010ff442ab swift::irgen::emitPolymorphicArguments(swift::irgen::IRGenFunction&, swift::CanTypeWrapperswift::SILFunctionType, swift::CanTypeWrapperswift::SILFunctionType, llvm::ArrayRefswift::Substitution, swift::irgen::WitnessMetadata, swift::irgen::Explosion&) + 587
5 swift 0x000000010ff90eac (anonymous namespace)::IRGenSILFunction::visitFullApplySite(swift::FullApplySite) + 2172
6 swift 0x000000010ff829ad swift::irgen::IRGenModule::emitSILFunction(swift::SILFunction) + 10973
7 swift 0x000000010fee9053 swift::irgen::IRGenModuleDispatcher::emitLazyDefinitions() + 307
8 swift 0x000000010ff6949a performIRGeneration(swift::IRGenOptions&, swift::ModuleDecl, swift::SILModule_, llvm::StringRef, llvm::LLVMContext&, swift::SourceFile_, unsigned int) + 1034
9 swift 0x000000010ff69830 swift::performIRGeneration(swift::IRGenOptions&, swift::SourceFile&, swift::SILModule_, llvm::StringRef, llvm::LLVMContext&, unsigned int) + 64
10 swift 0x000000010fe68265 performCompile(swift::CompilerInstance&, swift::CompilerInvocation&, llvm::ArrayRef, int&) + 13701
11 swift 0x000000010fe64ad3 frontend_main(llvm::ArrayRef<char const*>, char const_, void_) + 2691
12 swift 0x000000010fe61154 main + 2324
13 libdyld.dylib 0x00007fff8b68b5ad start + 1
14 libdyld.dylib 0x000000000000004d start + 1956072097
Stack dump:
0. Program arguments: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -frontend -c /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSourceType.swift -primary-file /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQueue.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQOSClass.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchGroup.swift /Users/zzy/Downloads/DispatchKit-master/Sources/Bridge.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchDataScale.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchQueueAttr.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSemaphore.swift /Users/zzy/Downloads/DispatchKit-master/Sources/Dispatch.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchIO.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchTime.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchObject.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchData.swift /Users/zzy/Downloads/DispatchKit-master/Sources/DispatchSource.swift -target arm64-apple-ios7.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -I /Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos -F /Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos -enable-testing -g -module-cache-path /Users/zzy/Downloads/DispatchKit-master/DerivedData/ModuleCache -serialize-debugging-options -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/swift-overrides.hmap -Xcc -iquote -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-generated-files.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-own-target-headers.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-all-non-framework-target-headers.hmap -Xcc -ivfsoverlay -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/all-product-headers.yaml -Xcc -iquote -Xcc /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DispatchKit-project-headers.hmap -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Products/Debug-iphoneos/include -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DerivedSources/arm64 -Xcc -I/Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/DerivedSources -Xcc -DDEBUG=1 -Xcc -working-directory/Users/zzy/Downloads/DispatchKit-master -emit-module-doc-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueuepartial.swiftdoc -Onone -module-name DispatchKit -emit-module-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueuepartial.swiftmodule -serialize-diagnostics-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.dia -emit-dependencies-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.d -emit-reference-dependencies-path /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.swiftdeps -o /Users/zzy/Downloads/DispatchKit-master/Build/Intermediates/DispatchKit.build/Debug-iphoneos/DispatchKit.build/Objects-normal/arm64/DispatchQueue.o
Love the look of this library! I hate having the ugly, C-style code mixed in with my fancy Swift code. I only use Carthage for package management in my current project.
Would it be possible to see DispatchKit updated to support Carthage?
As mentioned here, it would be best to use failable initializers instead of optional dispatch objects. However, there are a few methods / initializers which (especially in DispatchData.swift) where it is not clear whether the method / initializer should fail, or return an optional or an implicitly unwrapped optional. The goal of this issue is to determine how each of these methods / initializers should behave.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.