/** * Hachette feature initialization promise * * Copyright (C) 2021 Wojtek Kosior * Redistribution terms are gathered in the `copyright' file. */ /* * This module provides an easy way to wrap an async function into a promise * so that it only gets executed once. */ async function assign_result(state, result_producer) { state.result = await result_producer(); state.ready = true; for (let cb of state.waiting) setTimeout(cb, 0, state.result); state.waiting = undefined; } async function get_result(state) { if (state.ready) return state.result; return new Promise((resolve, reject) => state.waiting.push(resolve)); } function make_once(result_producer) { let state = {waiting : [], ready : false, result : undefined}; assign_result(state, result_producer); return () => get_result(state); } /* * EXPORTS_START * EXPORT make_once * EXPORTS_END */ alue='switch'/> Wojtek's customized Guix
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/spice.scm
AgeCommit message (Expand)Author
2023-04-09gnu: libcacard: Use latest meson....Maxim Cournoyer
2023-04-03gnu: libcacard: Build with older meson....Efraim Flashner
2023-02-25gnu: virglrenderer: Update to 0.10.4....Simon Streit
2023-02-25gnu: spice-gtk: Adjust the default file name of the ACL helper binary....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Enable support for polkit, webdav and others....Maxim Cournoyer
2023-02-25gnu: spice-vdagent: Update to 0.22.1....Maxim Cournoyer
2023-02-25gnu: spice: Update to 0.15.1....Maxim Cournoyer
2023-02-25gnu: libcacard: Remove obsolete configure flags....Maxim Cournoyer
2023-02-25gnu: virglrenderer: Update to 0.7.0....Maxim Cournoyer
2023-02-25gnu: usbredir: Update to 0.13.0....Maxim Cournoyer
2023-02-25gnu: spice-protocol: Update to 0.14.4....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Propagate libjpeg-turbo, lz4, opus, and usbredir....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Update to 0.42....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Use gexps....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Remove input labels....Maxim Cournoyer
2023-02-25gnu: spice-gtk: Fix indentation and normalize field order....Maxim Cournoyer