{"id":18271623,"url":"https://github.com/karelia/KSThreadProxy","last_synced_at":"2025-04-05T02:30:35.686Z","repository":{"id":56917633,"uuid":"805328","full_name":"karelia/KSThreadProxy","owner":"karelia","description":"Simple proxy for cross-thread messaging","archived":false,"fork":false,"pushed_at":"2013-08-07T08:52:44.000Z","size":196,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-21T01:34:55.397Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/karelia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-07-29T13:38:46.000Z","updated_at":"2020-07-23T06:40:46.000Z","dependencies_parsed_at":"2022-08-21T03:50:53.756Z","dependency_job_id":null,"html_url":"https://github.com/karelia/KSThreadProxy","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karelia%2FKSThreadProxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karelia%2FKSThreadProxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karelia%2FKSThreadProxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karelia%2FKSThreadProxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karelia","download_url":"https://codeload.github.com/karelia/KSThreadProxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247279222,"owners_count":20912848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T11:39:25.055Z","updated_at":"2025-04-05T02:30:35.388Z","avatar_url":"https://github.com/karelia.png","language":"Objective-C","readme":"Features\n========\n\nKSThreadProxy provides a few convenient means of executing code on a different thread to the current one, both for pre and post-block worlds.\n\nTo send a message to an object on a different thread:\n\n    [[object ks_proxyOnThread:thread] doThing];\n\nNote that you can pass nil to automatically target the main thread. The call is blocking so that you even receive the return value back properly. Alternatively, `ks_proxyOnThread:waitUntilDone:` is available to explicitly do the work asynchronously.\n\n`dispatch_sync` has one annoyance: it deadlocks when used by a serial queue to target itself. KSThreadProxy adds a handful of convenience methods for bouncing blocks over to specific threads, in a non-deadlocking fashion, such as `-[NSThread ks_performBlockAndWait:]`\n\nContact\n=======\n\nI'm Mike Abdullah, of [Karelia Software](http://karelia.com). [@mikeabdullah](http://twitter.com/mikeabdullah) on Twitter.\n\nQuestions about the code should be left as issues at https://github.com/karelia/KSThreadProxy or message me on Twitter.\n\nDependencies\n============\n\nNone beyond Foundation. Works back to OS X v10.5 for the actual thread proxy. Compiler support for blocks is required for methods that use them, which in practice means OS X v10.6.\n\nLicense\n=======\n\nCopyright © 2008 Karelia Software\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\nUsage\n=====\n\nAdd `KSThreadProxy.h` and `KSThreadProxy.m` to your project. Ideally, make this repo a submodule, but hey, it's your codebase, do whatever you feel like.\n","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarelia%2FKSThreadProxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarelia%2FKSThreadProxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarelia%2FKSThreadProxy/lists"}