server-session-serverstreaming.swift 587 B

12345678910
  1. {{ access }} protocol {{ .|session:file,service,method }}: ServerSessionServerStreaming {
  2. /// Send a message. Nonblocking.
  3. func send(_ response: {{ method|output }}, completion: ((Bool) -> Void)?) throws
  4. }
  5. fileprivate final class {{ .|session:file,service,method }}Impl: ServerSessionServerStreamingImpl<{{ method|input }}, {{ method|output }}>, {{ .|session:file,service,method }} { }
  6. //-{% if generateTestStubs %}
  7. class {{ .|session:file,service,method }}TestStub: ServerSessionServerStreamingTestStub<{{ method|output }}>, {{ .|session:file,service,method }} { }
  8. //-{% endif %}