{"id":16707419,"url":"https://github.com/xiaodaigh/gosocket","last_synced_at":"2025-07-09T10:32:31.003Z","repository":{"id":12514160,"uuid":"15183914","full_name":"xiaodaigh/gosocket","owner":"xiaodaigh","description":"A simple toy example of goroutine-like function go.socket which allows code to be executed in a non-blocking manner on a socket server","archived":false,"fork":false,"pushed_at":"2017-09-29T22:25:58.000Z","size":40,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-13T19:39:18.945Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xiaodaigh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-14T10:32:01.000Z","updated_at":"2017-10-09T09:34:35.000Z","dependencies_parsed_at":"2022-08-29T14:01:22.967Z","dependency_job_id":null,"html_url":"https://github.com/xiaodaigh/gosocket","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaodaigh%2Fgosocket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaodaigh%2Fgosocket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaodaigh%2Fgosocket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xiaodaigh%2Fgosocket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xiaodaigh","download_url":"https://codeload.github.com/xiaodaigh/gosocket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225533207,"owners_count":17484231,"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-10-12T19:39:26.704Z","updated_at":"2024-11-20T10:34:38.206Z","avatar_url":"https://github.com/xiaodaigh.png","language":"R","readme":"# Use the future package\nThe functionality demonstrated in this toy example is better implemented in the [future package](https://cran.r-project.org/web/packages/future/vignettes/future-1-overview.html) already. \n\n\ngosocket\n========\nAllows for simple go-routine like execution of code (as in syntax but NOT in lightweight-ness) in a non-blocking manner on socket server.\n\n# Install\n```r\ninstall.packages(\"devtools\") #if not already installed\ndevtools::install_github(\"AnalytixWare/gosocket\")\n```\n\n# Usage\n```r\nlibrary(gosocket)\nsystem.time(gs \u003c- go.socket(\"z \u003c- rnorm(10^8)\")) # go.socket is non-blocking the rest of the code will execute almost immediately\nprint(\"Don't have to wait for it to finish\") \nevalServer.nb(gs$con,\"summary(z)\") # to retrieve the results; this is blocking\nprint(\"The above you have to wait for!\")\nclose.go.socket(gs) # good practise to close the go.socket\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaodaigh%2Fgosocket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxiaodaigh%2Fgosocket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxiaodaigh%2Fgosocket/lists"}