import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
(function() {
    return _async_to_generator(function() {
        var sleep, result;
        return _ts_generator(this, function(_state) {
            switch(_state.label){
                case 0:
                    sleep = function sleep() {
                        return new Promise(function(resolve) {
                            return setTimeout(function() {
                                return resolve(undefined);
                            }, 500);
                        });
                    };
                    return [
                        4,
                        sleep()
                    ];
                case 1:
                    result = _state.sent() || "fallback";
                    console.log(result);
                    return [
                        2
                    ];
            }
        });
    })();
})();
