Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
SisMaker 95e5bf4868 ft:测试修改 il y a 7 mois
include ft: 增加新的模式 il y a 7 mois
src ft:测试修改 il y a 7 mois
.gitignore ft:初始化提交 il y a 3 ans
LICENSE ft:初始化提交 il y a 3 ans
README.md ft: 代码完善 il y a 3 ans
rebar.config ft: 编译错误 il y a 7 mois

README.md

eFaw

Eralng's Factories and workers.

Build

$ rebar3 compile

Useage

1 write you worker mod like: fwWtp.erl 
2 open your factory        : eFaw:openF(myFactory, [{wMod, fwWtp}, ...]), more option see eFaw.hrl
3 send your async task to your factory: eFaw:inWork(myFactory, [{report_log, xxxx}, {write_log, yyyyyy}]).
4 apply your sync task to your factory: eFaw:syncWork(myFactory, retTag, 5000, {report_log, xxxx}).
5 then worker auto do the task

all API:
    start/0               %% start app
    stop/0                %% stop app
    openF/2               %% Open a factory
    closeF/1              %% close a factory
    hireW/3               %% hire worker
    inWork/2              %% Insert async task
    inWorks/2             %% Insert async tasks
    syncWork/4            %% Insert sync task And wait for the result to receive