Created
August 9, 2020 15:27
-
-
Save Bradysm/f3cfa7cec377fc024be6f7b962db4915 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Protocol used to define services that can send messages | |
*/ | |
protocol MessageSendable { | |
/// prototype of messaging function that must be defined within a module | |
/// that conforms to this protocol | |
func sendMessage(username: String, message: String, completion: @escaping (Result<String, Error>) -> Void); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment