Buckets:
| import { apiClient } from '@/utils/api'; | |
| export const startQueue = (queueID: string) => { | |
| return new Promise<void>((resolve, reject) => { | |
| apiClient | |
| .get(`/api/queue/${queueID}/start`) | |
| .then(res => res.data) | |
| .then(data => { | |
| console.log('Queue started:', data); | |
| resolve(); | |
| }) | |
| .catch(error => { | |
| console.error('Error starting queue:', error); | |
| reject(error); | |
| }); | |
| }); | |
| }; | |
| export const stopQueue = (queueID: string) => { | |
| return new Promise<void>((resolve, reject) => { | |
| apiClient | |
| .get(`/api/queue/${queueID}/stop`) | |
| .then(res => res.data) | |
| .then(data => { | |
| console.log('Queue stopped:', data); | |
| resolve(); | |
| }) | |
| .catch(error => { | |
| console.error('Error stopping queue:', error); | |
| reject(error); | |
| }); | |
| }); | |
| }; | |
Xet Storage Details
- Size:
- 840 Bytes
- Xet hash:
- d8aa68010386d759858aafe79cc6c7fe8264617cf7255c64eb5ac333ecd0e12e
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.