import { Empty } from '@devvit/protos/types/google/protobuf/empty.js';
const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
export default class Timer {
    // RPC
    async Wait(request, _metadata) {
        if (request.durationMillis !== undefined) {
            await sleep(request.durationMillis);
        }
        return Empty.fromPartial({});
    }
}
