Back

It may sound a bit silly but as I'm trying to write fully typed code I found out that managing TTLs values in an enum makes things more intuitive and organized. Here's an example from my app
image

1

120

  • No matching results...
  • Searching...

/ 1000

Poll Options

When encountering it in the code we can easily read tenMinutes or oneDay to undersrand how long this TTL is.

111