How to use event listners for notifications sent from parfeval functions?
조회 수: 1 (최근 30일)
이전 댓글 표시
Is it possible to trigger a notify event from a parfeval function with a listner in the calling client? So far my experiments with this have failed (but without telling me about any errors.)
댓글 수: 0
채택된 답변
Edric Ellis
2015년 6월 9일
There currently isn't any support for events from parfeval futures. What sort of event support were you hoping for? Just a completion event?
For now, your best bet is call fetchNext in a loop, possibly with a timeout - although of course this doesn't give you the full flexibility that an event would.
댓글 수: 3
Edric Ellis
2015년 6월 10일
Thanks for the information. You can pass object methods to parfeval, but that probably will not help you because the object handles on the workers are not connected back to the object handle at the client.
Walter Roberson
2015년 6월 10일
Neil, perhaps it would make more sense to use spmd and labSend() the data from the streams to the master lab that is coordinating everything.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Asynchronous Parallel Programming에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!