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
class ZCL_BITWISE definition | |
public | |
final | |
create public . | |
public section. | |
*"* public components of class ZCL_BITWISE | |
*"* do not include other source files here!!! | |
class-methods CLASS_CONSTRUCTOR . |
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
const randomTimeout = () => Math.floor(Math.random() * (3000 - 500)) + 500 | |
const someAsyncProcess = message => new Promise(resolve => setTimeout(() => { | |
console.log(message) | |
resolve() | |
}, randomTimeout())) | |
const messages = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
const testParallel = async () => Promise.all(messages.map(async message => someAsyncProcess(message))) |
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
const fs = require('fs') | |
fs.readFile('./oplog.dump', 'utf-8', (err, jsonString) => { | |
const oplog = JSON.parse(jsonString) | |
const operationsMap = new Map() | |
oplog.forEach((oplogItem) => { | |
const { ns, op } = oplogItem | |
let operation = operationsMap.get(ns) | |
if (operation) { | |
if (op === 'd') { |