Closed abdahad1996 closed 11 months ago
promised() is used with optional types and will throw a fatalError in debug mode to let you know that you promised to provide an implementation but apparently did not. In release mode it simply returns nil and lets your optional handling do the job.
does this library give an error in compile time if let say from the main app i forgot to do the registeration for passing in dependency to a module like the example below cause i am getting a crash at runtime if i don't pass in the dependency