File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ if res.Sent() {
154154
155155## Context & Timeouts
156156
157- For better control over request cancelations and timeouts APNS/2 supports
157+ For better control over request cancellations and timeouts APNS/2 supports
158158contexts. Using a context can be helpful if you want to cancel all pushes when
159159the parent process is cancelled, or need finer grained control over individual
160160push timeouts. See the [ Google post] ( https://blog.golang.org/context ) for more
Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ func (c *Client) Production() *Client {
133133// indicating whether the notification was accepted or rejected by the APNs
134134// gateway, or an error if something goes wrong.
135135//
136- // Use PushWithContext if you need better cancelation and timeout control.
136+ // Use PushWithContext if you need better cancellation and timeout control.
137137func (c * Client ) Push (n * Notification ) (* Response , error ) {
138138 return c .PushWithContext (nil , n )
139139}
140140
141141// PushWithContext sends a Notification to the APNs gateway. Context carries a
142- // deadline and a cancelation signal and allows you to close long running
142+ // deadline and a cancellation signal and allows you to close long running
143143// requests when the context timeout is exceeded. Context can be nil, for
144144// backwards compatibility.
145145//
Original file line number Diff line number Diff line change 99 "golang.org/x/net/context/ctxhttp"
1010)
1111
12- // A Context carries a deadline, a cancelation signal, and other values across
12+ // A Context carries a deadline, a cancellation signal, and other values across
1313// API boundaries.
1414//
1515// Context's methods may be called by multiple goroutines simultaneously.
Original file line number Diff line number Diff line change 77 "net/http"
88)
99
10- // A Context carries a deadline, a cancelation signal, and other values across
10+ // A Context carries a deadline, a cancellation signal, and other values across
1111// API boundaries.
1212//
1313// Context's methods may be called by multiple goroutines simultaneously.
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ const (
110110// surrounding the rejection.
111111type Response struct {
112112
113- // The HTTP status code retuened by APNs.
113+ // The HTTP status code returned by APNs.
114114 // A 200 value indicates that the notification was successfully sent.
115115 // For a list of other possible status codes, see table 6-4 in the Apple Local
116116 // and Remote Notification Programming Guide.
You can’t perform that action at this time.
0 commit comments