{"id":29962034,"url":"https://github.com/inaka/tinytask","last_synced_at":"2025-08-03T23:44:13.510Z","repository":{"id":27846252,"uuid":"31336485","full_name":"inaka/TinyTask","owner":"inaka","description":"A Tiny Task Library","archived":false,"fork":false,"pushed_at":"2016-05-11T19:17:42.000Z","size":112,"stargazers_count":352,"open_issues_count":3,"forks_count":80,"subscribers_count":60,"default_branch":"master","last_synced_at":"2025-08-02T20:17:11.531Z","etag":null,"topics":["async","java","task"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inaka.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":"2015-02-25T21:23:30.000Z","updated_at":"2025-06-29T18:30:51.000Z","dependencies_parsed_at":"2022-09-03T13:31:08.032Z","dependency_job_id":null,"html_url":"https://github.com/inaka/TinyTask","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/inaka/TinyTask","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FTinyTask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FTinyTask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FTinyTask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FTinyTask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inaka","download_url":"https://codeload.github.com/inaka/TinyTask/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inaka%2FTinyTask/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268629866,"owners_count":24281173,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["async","java","task"],"created_at":"2025-08-03T23:44:05.774Z","updated_at":"2025-08-03T23:44:13.259Z","avatar_url":"https://github.com/inaka.png","language":"Java","readme":"TinyTask\n=====\n\nA tiny Android library to create async background tasks. Highly inspired by [NanoTasks](https://github.com/fabiendevos/nanotasks), but with a funnier API :)\n\n### Abstract\nAndroid's `AsyncTasks` are highly criticized for being bad, unreliable, outdated, etc. Are they perfect? No.\nDo we have better alternatives? Sure, but sometimes all we want is a quick and simple way to run something in the background.\n\n### What is it, really?\nJust a tiny wrapper around an `AsyncTask`, with a funny looking API.\n\n### How to download and Install\nAdd the following to your `build.gradle` file:\n\n```groovy\nrepositories {\n\tmaven {\n\t\turl \"https://jitpack.io\"\n\t}\n}\n\ndependencies {\n\t// ...\n  compile 'com.github.inaka:tinytask:v1'\n  // ...\n}\n```\n\n### Code Example\nThe API methods should be self-explanatory :)\n\n```java\nTinyTask.perform(new Something\u003cString\u003e() {\n            @Override\n            public String whichDoes() {\n                return doWork(); // you write this method..\n            }\n\n        }).whenDone(new DoThis\u003cString\u003e() {\n            @Override\n            public void ifOK(String result) {\n                Log.i(TAG, result);\n            }\n\n            @Override\n            public void ifNotOK(Exception e) {\n                Log.i(TAG, e.toString());\n            }\n        }).go();\n```\n\n### Contact Us\nFor **questions** or **general comments** regarding the use of this library, please use our public\n[hipchat room](http://inaka.net/hipchat).\n\nIf you find any **bugs** or have a **problem** while using this library, please [open an issue](https://github.com/inaka/galgo/issues/new) in this repo (or a pull request :)).\n\nAnd you can check all of our open-source projects at [inaka.github.io](http://inaka.github.io)\n\n### Thanks to\n[NanoTasks](https://github.com/fabiendevos/nanotasks) for inspiration\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaka%2Ftinytask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finaka%2Ftinytask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finaka%2Ftinytask/lists"}