constructor()

in src/util/try.ts [5:12]


  constructor(fn: () => T) {
    try {
      this.result = fn()
      this.isSuccess = true
    } catch {
      this.isSuccess = false
    }
  }