So I am reworking a system with the knit framework and I am currently making an input controller that involves services made by the knit server but I keep getting this error:
it seems like you must be misusing knit
In any case here’s a potential (dirty) solution
local LibraryPromise = Knit.OnStart():andThen(function() return Knit.GetService("FunctionsLibrary") end)
...
local FunctionsLibrary = LibraryPromise:expect() --this will yield
or yield the entire thread
Knit.OnStart():await()
local FunctionsLibrary = Knit.GetService("FunctionsLibrary")