Skip to content

Commit

Permalink
Merge pull request #4505 from amomchilov/timeout-Float
Browse files Browse the repository at this point in the history
Document that Timeout can handle Floats
  • Loading branch information
rmosolgo authored Jun 9, 2023
2 parents 50d0e7f + e58f36b commit 7efd8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/graphql/schema/timeout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def execute_field(query:, field:, **_rest)
# The default implementation returns the `max_seconds:` value from installing this plugin.
#
# @param query [GraphQL::Query] The query that's about to run
# @return [Integer, false] The number of seconds after which to interrupt query execution and call {#handle_error}, or `false` to bypass the timeout.
# @return [Numeric, false] The number of seconds after which to interrupt query execution and call {#handle_error}, or `false` to bypass the timeout.
def max_seconds(query)
@max_seconds
end
Expand Down

0 comments on commit 7efd8e6

Please sign in to comment.