Skip to content

Commit

Permalink
Update README.md (#36)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Patrin <ppatrin@nvidia.com>
  • Loading branch information
pavelpatrin authored Jul 13, 2024
1 parent db04011 commit ad68d6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (s *MyService) Close() error {

### Service Functions

The **Service Function** is a specialized form of service optimized for simpler tasks. Instead of returning an concrete
The **Service Function** is a specialized form of service optimized for simpler tasks. Instead of returning a concrete
type object or an interface, the service factory returns a function that conforms to `func() error` type.

The function serves two primary roles:
Expand All @@ -176,6 +176,7 @@ In this design, the factory function is responsible for receiving the context. T
needs to close, allowing the function to terminate gracefully.

Errors returned by the function are processed as if they were errors returned by a standard `Close()` method to the container.
This means the container will synchronously wait until a service function returns an error or nil before closing the next services.

### Events Broker

Expand Down

0 comments on commit ad68d6d

Please sign in to comment.