Promise.try for Unified Sync and Async Error Handling