Skip to content

Commit 90e7010

Browse files
committed
v0.5.5
1 parent d3ecd82 commit 90e7010

File tree

9 files changed

+15
-10
lines changed

9 files changed

+15
-10
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
This project uses [semantic versioning](https://semver.org/spec/v2.0.0.html).
44

5-
## [version 0.5.4](): 8/19/2023
5+
## [version 0.5.5](): 8/26/2023
6+
7+
### Fixes
8+
- All coroutine.resume instances have been replaced with task.spawn. This fixes a lot of obscure bugs.
9+
10+
## [version 0.5.4](https://github.com/ffrostflame/BridgeNet2/releases/tag/v0.5.4): 8/19/2023
611

712
### Added
813
- You can now name connections, which will show up in logging and in the microprofiler.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src=".moonwave/static/logo.png" width="256" />
33
</div>
44

5-
# BridgeNet2 v0.5.4
5+
# BridgeNet2 v0.5.5
66

77
## Blazing fast & opinionated networking library designed to reduce bandwidth.
88

src/Client/ClientBridge.luau

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ function clientBridgePrototype:Wait()
224224
-- Again, very basic QoL implementation of :Wait()
225225
local thread = coroutine.running()
226226
self:Once(function(content)
227-
coroutine.resume(thread, content)
227+
task.spawn(thread, content)
228228
end)
229229
return coroutine.yield()
230230
end
@@ -248,7 +248,7 @@ function clientBridgePrototype:InvokeServerAsync(content: any)
248248
end
249249
if (reply :: {})[1] == ClientIdentifiers.ref("REQUEST", 3, false) then
250250
connection()
251-
coroutine.resume(thread, (reply :: {})[2])
251+
task.spawn(thread, (reply :: {})[2])
252252
end
253253
end)
254254
return coroutine.yield()

src/Client/ClientIdentifiers.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function ClientIdentifiers.loadIdentifier(identifierName: string, value: string)
5656
for index, thread in yieldingThreads[identifierName] do
5757
-- Resume yielding threads with the compressed identifier.
5858
-- This will make the function return the compressed identifier
59-
coroutine.resume(thread, value)
59+
task.spawn(thread, value)
6060

6161
-- Insert it to say we aren't yielding this thread anymore
6262
table.insert(indexes, index)

src/Server/ServerBridge.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ function serverBridgePrototype:Wait()
189189
Output.fatalAssert(tostring(self) == "ServerBridge", "Wait called with . instead of :")
190190
local thread = coroutine.running()
191191
self:Connect(function(player, content)
192-
coroutine.resume(thread, player, content)
192+
task.spawn(thread, player, content)
193193
end)
194194
return coroutine.yield()
195195
end

src/Studio/MockBridge.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ function mockBridgePrototype:Wait()
7171
-- Again, very basic QoL implementation of :Wait()
7272
local thread = coroutine.running()
7373
self:Once(function(content)
74-
coroutine.resume(thread, content)
74+
task.spawn(thread, content)
7575
end)
7676
return coroutine.yield()
7777
end

src/Utilities/RecycledSpawn.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ end
1616
return function(fn: (...any) -> (), ...): ()
1717
if freeThread == nil then
1818
freeThread = coroutine.create(yielder)
19-
coroutine.resume(freeThread :: thread)
19+
task.spawn(freeThread :: thread)
2020
end
2121
task.spawn(freeThread :: thread, fn, ...)
2222
end

src/version.luau

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
return "0.5.3"
1+
return "0.5.5"

wally.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "ffrostflame/bridgenet2"
3-
version = "0.5.4"
3+
version = "0.5.5"
44
registry = "https://github.com/UpliftGames/wally-index"
55
realm = "shared"
66
description = "The successor to BridgeNet, BridgeNet2 is a blazing-fast networking library designed for scale and performance."

0 commit comments

Comments
 (0)