This file contains hidden or 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
| async function fn1() { | |
| console.log(1); | |
| await new Promise((resolve, reject) => { | |
| console.log(2); | |
| resolve(); | |
| }) | |
| console.log(3); | |
| }; |
This file contains hidden or 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
| package com.netease.youdata.util; | |
| import java.util.concurrent.ConcurrentHashMap; | |
| public class ExpiredWindow<K, V> { | |
| private Long windowSize; | |
| private ConcurrentHashMap<K, V> dataMap = new ConcurrentHashMap<>(); |
This file contains hidden or 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
| let _ = require('lodash'); | |
| let pure = x => _ => x; | |
| let ap = f => g => x => f(x)(g(x)); | |
| let add = a => b => a + b; | |
| let multi = a => b => a * b; | |
| let minus3 = a => b => c => a - b - c; |
OlderNewer