{"id":"riverman56/signal","name":"signal","scope":"riverman56","platform":"roblox","description":"Bare-bones signal implementation","version":"0.2.0","latest":"0.2.0","versions":["0.1.0","0.1.1","0.1.2","0.2.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"86c55c37a12bce8bb253b258e9c58ec97663188cccd4dfd37f837d9158a0cad1","likes":0,"downloads":0,"install":"forest install riverman56/signal","url":"https://forest.dev/p/roblox/riverman56/signal","files":"https://api.forest.dev/ai/package/roblox/riverman56/signal/files","readme":"[license-shield]: https://img.shields.io/github/license/riverman56/signal\n[license-url]: https://github.com/riverman56/signal/blob/master/LICENSE.txt\n\n[release-shield]: https://img.shields.io/github/v/release/riverman56/signal?sort=semver\n[release-url]: https://github.com/riverman56/signal/releases/latest\n\n[ci-status-shield]: https://img.shields.io/github/actions/workflow/status/riverman56/signal/ci.yml?label=CI\n[ci-status-url]: https://github.com/riverman56/signal/actions/workflows/ci.yml\n\n[cd-status-shield]: https://img.shields.io/github/actions/workflow/status/riverman56/signal/release.yml?label=CD\n[cd-status-url]: https://github.com/riverman56/signal/actions/workflows/release.yml\n\n# Signal\n[![License][license-shield]][license-url]\n[![Release][release-shield]][release-url]\n[![CI][ci-status-shield]][ci-status-url]\n[![CI][cd-status-shield]][cd-status-url]\n\nA bare-bones signal implementation with publish/subscribe functionality.\nThis library was inspired by the [signal implementation found in Roact.](https://github.com/Roblox/roact/blob/beb0bc2706b307b04204abdcf129385fd3cb3e6f/src/createSignal.lua)\n\n## Example\n```lua\nlocal Signal = require(path.to.Signal)\n\nlocal signal = Signal.new()\nsignal:subscribe(function(message: string)\n    print(message)\nend)\n\nsignal:fire(\"Hello World!\")\n-- output: Hello World!\n```\nSee the [Signal API](https://riverman56.github.io/signal/api/Signal) for more info\n\n## Installation\nInstall the Signal package through Wally.\n```toml\nSignal = \"riverman56/signal@<version>\"\n```","readmeTruncated":false}