Team Ai
Datasetpublic

Brunobkr/llama.cpp_AlgMor24_github

ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.

sourceHugging Faceupdated 2mo agoView on Hugging Face
0likes3kdownloads
messageSW.ts38 linesDownload Raw Back to src
1/*2  Copyright 2019 Google LLC3 4  Use of this source code is governed by an MIT-style5  license that can be found in the LICENSE file or at6  https://opensource.org/licenses/MIT.7*/8 9import './_version.js';10 11/**12 * Sends a data object to a service worker via `postMessage` and resolves with13 * a response (if any).14 *15 * A response can be set in a message handler in the service worker by16 * calling `event.ports[0].postMessage(...)`, which will resolve the promise17 * returned by `messageSW()`. If no response is set, the promise will not18 * resolve.19 *20 * @param {ServiceWorker} sw The service worker to send the message to.21 * @param {Object} data An object to send to the service worker.22 * @return {Promise<Object|undefined>}23 * @memberof workbox-window24 */25// Better not change type of data.26// eslint-disable-next-line @typescript-eslint/ban-types27function messageSW(sw: ServiceWorker, data: {}): Promise<any> {28  return new Promise((resolve) => {29    const messageChannel = new MessageChannel();30    messageChannel.port1.onmessage = (event: MessageEvent) => {31      resolve(event.data);32    };33    sw.postMessage(data, [messageChannel.port2]);34  });35}36 37export {messageSW};38