Avatar
omochimetaru 9/5/2017 3:51 AM
SourceKitten - An adorable little framework and command line tool for interacting with SourceKit.
3:52 AM
DispatchQueue.global(qos: .default).async { let registry = CommandRegistry<SourceKittenError>() registry.register(CompleteCommand()) registry.register(DocCommand()) registry.register(FormatCommand()) registry.register(IndexCommand()) registry.register(SyntaxCommand()) registry.register(StructureCommand()) registry.register(RequestCommand()) registry.register(VersionCommand()) registry.register(HelpCommand(registry: registry)) registry.main(defaultVerb: "help") { error in fputs("\(error)\n", stderr) } } dispatchMain()
3:52 AM
dispatchMain()  って関数に突入させれば
3:52 AM
DispatchQueueのメインループを最上位に持つプロセス作れるんだね