grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

Improve the names of a few commonly used APIs

Open glbrntt opened this issue 1 year ago • 0 comments

Motivation:

Naming is important; it should be clear and concise.

Modifications:

The follow renames all offer more precise names:

  • Rename server.run() to server.serve()
  • Rename server.stopListening() to server.beginGracefulShutdown()
  • Rename client.close() to client.beginGracefulShutdown()

Result:

Clearer APIs

glbrntt avatar Aug 12 '24 14:08 glbrntt