Skip to content

Instantly share code, notes, and snippets.

@indongyoo
Created April 3, 2018 12:33
Show Gist options
  • Save indongyoo/d94e4f2adb6e536cf65511322b3dd13d to your computer and use it in GitHub Desktop.
Save indongyoo/d94e4f2adb6e536cf65511322b3dd13d to your computer and use it in GitHub Desktop.
some(pipe(get, isBlah), [{ ... }, { ... }, { ... }]);
// - 하나씩 시도
// - 만일 첫 번째에서 참을 만들면 뒤에 2개는 디비 요청을 하지 않음
someC(pipe(get, isBlah), [{ ... }, { ... }, { ... }]);
// - 동시에 3개 모두 디비 요청
// - 먼저 온 결과를 통해 참을 만들면 나머지 결과를 더 기다리지 않고 다음으로 넘어감
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment