@quenty/rx 8.1.0 → 8.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/package.json +2 -2
- package/src/Shared/Rx.lua +3 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [8.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@8.1.0...@quenty/rx@8.1.1) (2023-10-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **rx:** Rx.timer() bad coroutine close ([#428](https://github.com/Quenty/NevermoreEngine/issues/428)) ([2a08298](https://github.com/Quenty/NevermoreEngine/commit/2a08298d793e06d3afffdf7f300253dc29967947))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [8.1.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rx@8.0.0...@quenty/rx@8.1.0) (2023-10-18)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rx
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rx",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "Quenty's reactive library for Roblox",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "440aca7ce2b50b74317ee05fdc0b8d1e58001af3"
|
|
44
44
|
}
|
package/src/Shared/Rx.lua
CHANGED
|
@@ -1657,24 +1657,18 @@ function Rx.timer(initialDelaySeconds, seconds)
|
|
|
1657
1657
|
local maid = Maid.new()
|
|
1658
1658
|
|
|
1659
1659
|
local number = -1
|
|
1660
|
-
local running = true
|
|
1661
1660
|
|
|
1662
|
-
|
|
1661
|
+
maid:GiveTask(task.spawn(function()
|
|
1663
1662
|
if initialDelaySeconds and initialDelaySeconds > 0 then
|
|
1664
1663
|
task.wait(initialDelaySeconds)
|
|
1665
1664
|
end
|
|
1666
1665
|
|
|
1667
|
-
while
|
|
1666
|
+
while true do
|
|
1668
1667
|
number += 1
|
|
1669
1668
|
sub:Fire(number)
|
|
1670
1669
|
task.wait(seconds)
|
|
1671
1670
|
end
|
|
1672
|
-
end)
|
|
1673
|
-
|
|
1674
|
-
maid:GiveTask(function()
|
|
1675
|
-
running = false
|
|
1676
|
-
coroutine.close(thread)
|
|
1677
|
-
end)
|
|
1671
|
+
end))
|
|
1678
1672
|
|
|
1679
1673
|
return maid
|
|
1680
1674
|
end)
|