UNPKG
@prelude/function
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
0.0.3
Function module.
@prelude/function
/
src
/
fire.ts
9 lines
(6 loc)
•
150 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
noop
from
'./noop.js'
const
fire = (
f
:
() =>
Promise
<
unknown
>, rejected = noop):
void
=>
{
f
().
catch
(rejected) }
export
default
fire