Commit 33d1ec2d authored by Lorenzo Trujillo Rojas's avatar Lorenzo Trujillo Rojas
Browse files

Creación de una función para simular delay en una petición.

parent 3483f1bc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
export const delay = async (delay: number) => {
    return new Promise( resolve => setTimeout(resolve, delay) );
}
 No newline at end of file