Webview scheduling management module supporting asynchronous queue for Electron.
$ npm i electron-webview-schedule --save
Import in the renderer process.
import moment from 'moment';
import PromiseQueue from 'electron-webview-schedule/lib/promise-queue';
import WebviewSchedule from 'electron-webview-schedule/lib/webview-schedule';
const webviewSchedule = new WebviewSchedule({
container: document.body,
queue: new PromiseQueue(1),
moment,
webviewOptions: {
eventsStack: [],
attributes: {
},
},
});
webviewSchedule.send('channel-foo', args);
$ npm i
$ npm run dev
xudafeng |
sriting |
zlyi |
moshangqi |
---|
This project follows the git-contributor spec, auto updated at Thu Feb 23 2023 23:47:00 GMT+0800
.
The MIT License (MIT)