Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new Timeout type #1718

Merged
merged 14 commits into from
Nov 27, 2023
Merged

Add new Timeout type #1718

merged 14 commits into from
Nov 27, 2023

Conversation

gjcairo
Copy link
Collaborator

@gjcairo gjcairo commented Nov 23, 2023

Motivation

We need an encodable/decodable Timeout type to represent gRPC timeouts.

Modification

Added a new Timeout type that can be encoded to and from a String with the format specified by gRPC.

Result

We now have a way to represent Timeouts.

@gjcairo gjcairo requested a review from glbrntt November 23, 2023 18:01
@gjcairo gjcairo marked this pull request as ready for review November 23, 2023 18:01
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Show resolved Hide resolved
Tests/GRPCCoreTests/TimeoutTests.swift Outdated Show resolved Hide resolved
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit, looks good otherwise!

Sources/GRPCCore/Timeout.swift Outdated Show resolved Hide resolved
Sources/GRPCCore/Timeout.swift Show resolved Hide resolved
@gjcairo gjcairo enabled auto-merge (squash) November 27, 2023 14:51
@gjcairo gjcairo merged commit 2971c0a into grpc:main Nov 27, 2023
13 checks passed
@gjcairo gjcairo deleted the timeout-coding branch November 27, 2023 16:08
@glbrntt glbrntt added the v2 A change for v2 label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v2 A change for v2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants