Resolves r to a value, where r is:
r
await resolve(10); // 10await resolve(() => 10); // 10await resole(async () => { sleep(100); return 10;}); // 10 Copy
await resolve(10); // 10await resolve(() => 10); // 10await resole(async () => { sleep(100); return 10;}); // 10
To resolve an object's properties, use resolveFields.
Resolve is not recursive. So if r is an object, it will be returned, even though its properties may be resolvable.
Rest
Resolves
r
to a value, wherer
is:To resolve an object's properties, use resolveFields.
Resolve is not recursive. So if
r
is an object, it will be returned, even though its properties may be resolvable.