ttl function
Creates an option that sets the TTL
Implementation
DiscoveryOption ttl(Duration duration) {
return (options) => DiscoveryOptions(
ttl: duration,
limit: options.limit,
other: Map.from(options.other),
);
}