This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ipc.on('channel:enqueue', (e, payload) => { | |
const { channelName, stack, id } = payload; | |
getQueue() | |
.channel(channelName) | |
.enqueue( | |
() => { | |
return new Promise(resolve => { | |
ipc.once(`channel:resolve:${id}`, resolve); | |
e.sender.webContents.send(`channel:execute:${id}`); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<input type="password" name="password"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Either, Left, Right, match } from './patterns.ts'; | |
interface Person { | |
name: string; | |
} | |
const readValueFromAPI = (): Either<Error, Person> => { | |
// ... | |
const person: Person = { | |
name: 'Test', |
OlderNewer