{"id":18008568,"url":"https://github.com/mgree/trampoline","last_synced_at":"2025-03-26T12:32:10.510Z","repository":{"id":52696691,"uuid":"159880942","full_name":"mgree/trampoline","owner":"mgree","description":"Safely running potentially non-terminating functions in Elm.","archived":false,"fork":false,"pushed_at":"2021-04-20T19:42:14.000Z","size":481,"stargazers_count":10,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-21T19:12:51.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgree.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":"2018-11-30T21:33:19.000Z","updated_at":"2024-05-13T14:18:12.000Z","dependencies_parsed_at":"2022-08-21T18:00:29.884Z","dependency_job_id":null,"html_url":"https://github.com/mgree/trampoline","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Ftrampoline","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Ftrampoline/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Ftrampoline/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgree%2Ftrampoline/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgree","download_url":"https://codeload.github.com/mgree/trampoline/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245654354,"owners_count":20650852,"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-30T01:19:08.877Z","updated_at":"2025-03-26T12:32:10.057Z","avatar_url":"https://github.com/mgree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/mgree/trampoline.svg?branch=master)](https://travis-ci.com/mgree/trampoline)\n\nFueled computations in Elm.\n\nThe `Fuel` monad allows one to structure computations that use up 'gas', which allows one to write potentially non-terminating code in a relatively direct style. It turns out that these gas-based computations form a monad, so we can define usual functions like `map` and `andThen`.\n\n# Example\n\nSee https://mgree.github.io/trampoline for an example of how to use\nthe trampoline pattern, a way of structuring a program to use `Fuel`:\ntimers or other events trigger fueled computations; the source code in\nthis repository, at\n[example/src](https://github.com/mgree/trampoline/tree/master/example/src).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgree%2Ftrampoline","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgree%2Ftrampoline","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgree%2Ftrampoline/lists"}