오늘 한 일
- 비동기, CompletableFuture 학습
https://brunch.co.kr/@springboot/267#comment
https://www.inflearn.com/course/the-java-java8/dashboard
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/Future.html
https://codechacha.com/ko/java-future/
Java - Future 사용 방법
Future는 비동기적인 연산의 결과를 표현하는 클래스입니다. 즉, 멀티쓰레드 환경에서 처리된 어떤 데이터를 다른 쓰레드에게 전달하는 역할을 합니다. Future 내부적으로 Thread-Safe 하도록 구현되
codechacha.com
Future (Java Platform SE 8 )
Attempts to cancel execution of this task. This attempt will fail if the task has already completed, has already been cancelled, or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task
docs.oracle.com
CompletableFuture (Java Platform SE 8 )
Returns a new CompletionStage with the same result or exception as this stage, that executes the given action using the supplied Executor when this stage completes. When this stage is complete, the given action is invoked with the result (or null if none)
docs.oracle.com
더 자바, Java 8 - 인프런 | 강의
자바 8에 추가된 기능들은 자바가 제공하는 API는 물론이고 스프링 같은 제 3의 라이브러리 및 프레임워크에서도 널리 사용되고 있습니다. 이 시대의 자바 개발자라면 반드시 알아야 합니다. 이
www.inflearn.com
CompletableFuture
자바 비동기 프로그래밍을 위한 CompletableFuture 검토 | 필자는 최근에 CompletableFuture 를 사용해서 개발을 진행하였는데, CompletableFuture는 작년에 한번 사용한 이후로는 실무에서 사용할 일이 거의
brunch.co.kr
느낀 점
- 비동기 처리를 하기 위해서 CompletableFuture 클래스를 학습해보았다. 음.. 내용이 어려워서 잘 와닿지 않았다. 비동기 처리되는 과정이 뭔가 알 것 같으면서 코드를 짜려니 아예 감이 오지 않는다. 갑자기 나는 왜 모를까 생각하게 된다. TIL에 학습에 관한 내용만 쓰고싶다. 시행착오에 대한 내용은 단순 일기 같아서 쓰고 싶지 않은데 말이다. 아무튼 비동기 프로그래밍 학습은 어려웠다. 내일 마스터 클래스와 그룹 리뷰를 통해 감을 좀 잡으면 좋겠다.
'회고' 카테고리의 다른 글
20220131 - 0206 (0) | 2022.02.07 |
---|---|
20220128 - 0130 (0) | 2022.01.31 |
20220126 (2) | 2022.01.26 |
20220125 (0) | 2022.01.26 |
20220124 (0) | 2022.01.24 |