Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions sdk-go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ result, err := client.Send(ctx, primitive.SendParams{
})
```

`Send`, `Reply`, and `Forward` keep the HTTP request open until Primitive's
downstream SMTP transaction completes. Use a context deadline long enough for
SMTP delivery, typically 30-60 seconds.
By default `Send`, `Reply`, and `Forward` return as soon as Primitive accepts
the message for delivery. On `Send` and `Reply`, set `Wait` to keep the HTTP
request open until the first downstream SMTP delivery outcome; in that mode,
give the context a deadline long enough for SMTP delivery, typically 30-60
seconds. `Forward` has no `Wait` field and always returns on acceptance.

### Per-call timeout and cancellation

Expand Down