export const waitForFika = async ({ fromMinute = FIKA_FROM, toMinute = FIKA_TO } = {}) => {
Waits until a blocked minute range has passed.
Target style API. Preferred for new code.
Helpers
Source: helpers/fikaCheck.mjs
Target Style
export const waitForFika = async ({ fromMinute = FIKA_FROM, toMinute = FIKA_TO } = {}) => {
Waits until a blocked minute range has passed.
Target style API. Preferred for new code.
export const waitForFile = async ({ at }) => {
Waits until a file appears on disk.
Target style API. Preferred for new code.
Legacy Style
export const fikaCheck = async (fromMinute = FIKA_FROM, toMinute = FIKA_TO) => {
Waits until the blocked minute range has passed.
When the first argument is a string, it waits until that file appears.
Legacy API. Kept for older code and not the preferred choice for new code.