Releases: RBLXUtils/FastSignal
Add return type to `:Connect` (ScriptConnection) and Maid/Janitor compatibility
:Connect
now explicitly hasScriptConnection
as it's return type.- ScriptConnection now has
:Destroy
for Maid / Janitor compatibility. It points to:Disconnect
, when calling it yourself, use:Disconnect
.
Fixed Signal inconsistency + Added "Adaptive" Signal
-
Fixed an issue where the
:Fire
call did not act like RBXScriptSignals THIS IS NOT A PROBLEM ON DEFERRED BEHAVIOUR! I did implement in all versions, but that's why I didn't notice it. -
Added Adaptive Signal, a version of FastSignal which detects whether your game is on deferred behaviour or not, and behaving like it would it if was a BindableEvent.
-
Last minute fix: Fixed
:DisconnectAll
Alternatives to Deferred behaviour + changes
- Removed
:ConnectParallel
temporarily - Added
:ConnectOnce
which connects a handle only once! It can only run in the next:Fire
call.
Now when downloading FSignal, you'll see two 3 versions, the main one, and SimpleDeferred and Immediate. If you want a normal Signal, use the last 2 ones. These don't include a :__call
method, names, erroring in :Disconnect
, and some other things.
Better auto complete + small internal changes!
You should now be able to get auto completion for events basically everywhere! FastSignal now has types, and because of that, you can see auto completion of things like :Disconnect
, .Connected
, and all signal members!
This also means, that if you update your library with this signal library, you should see events under certain classes also have this!
Fixed release bug
5.4.1 Update Signal.lua
Optimizations
5.4.0 Update Signal.lua
Fixed :DisconnectAll never stopping
5.3.5 Update Signal.lua
Names + :__tostring readded!
You can now use signal names like when they had them!
Signal:SetName
Signal:GetName
- Added
TOSTRING_ENABLED
variable which decides if there is a:__tostring
method.
Now when you print a Signal, it won't print its private contents, but instead "Signal ".. SignalName
! Same as Roblox's ScriptSignals!
Added proper cleanage of disconnected connections
Now, having a reference to a connection doesn't leak the function, or other connections from it. This is a great improvement, that makes it closer to a RBXScriptSignal!
Just some small changes
:Wait
is faster and has a more dedicated integration with connections;- Micro optimization localizing task, and coroutine libraries, I know this doesn't change much speed wise, I kind of just like the syntax for some reason, and it doesn't hurt, so
/shrug.